Display user public notes

This commit is contained in:
Pierre 2018-05-05 11:27:57 +02:00
parent f4df523b1c
commit 03d1e8a91a
2 changed files with 39 additions and 0 deletions

View File

@ -13,4 +13,8 @@
.about-user-box { .about-user-box {
word-break: break-all; word-break: break-all;
}
.about-user-box .emoji {
height: 1em !important;
} }

View File

@ -237,6 +237,41 @@ ComunicWeb.pages.userPage.profileInfos = {
}); });
} }
//Add user public note (if any)
if(infos.publicNote){
var userNote = createElem2({
appendTo: boxBody,
type: "strong"
});
createElem2({
appendTo: userNote,
type: "i",
class: "fa fa-file-text-o margin-r-5"
});
createElem2({
appendTo: userNote,
type: "span",
innerHTML: "Note"
});
var publicNotes = createElem2({
appendTo: boxBody,
type: "p",
class: "text-muted",
innerHTML: infos.publicNote
});
//Parse text
ComunicWeb.components.textParser.parse({
element: publicNotes
});
//Add separator
createElem2({
appendTo: boxBody,
type: "hr",
});
}
//Add informations about membership //Add informations about membership
var membershipInfos = createElem2({ var membershipInfos = createElem2({
appendTo: boxBody, appendTo: boxBody,