mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-26 10:58:49 +00:00
Display user public notes
This commit is contained in:
parent
f4df523b1c
commit
03d1e8a91a
@ -13,4 +13,8 @@
|
||||
|
||||
.about-user-box {
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.about-user-box .emoji {
|
||||
height: 1em !important;
|
||||
}
|
@ -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
|
||||
var membershipInfos = createElem2({
|
||||
appendTo: boxBody,
|
||||
|
Loading…
Reference in New Issue
Block a user