From 03d1e8a91a633cd7cd579b78659f7386bda11e8b Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 5 May 2018 11:27:57 +0200 Subject: [PATCH] Display user public notes --- assets/css/pages/userPage/profileInfos.css | 4 +++ assets/js/pages/userPage/profileInfos.js | 35 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/assets/css/pages/userPage/profileInfos.css b/assets/css/pages/userPage/profileInfos.css index f21308f2..e4728f97 100644 --- a/assets/css/pages/userPage/profileInfos.css +++ b/assets/css/pages/userPage/profileInfos.css @@ -13,4 +13,8 @@ .about-user-box { word-break: break-all; +} + +.about-user-box .emoji { + height: 1em !important; } \ No newline at end of file diff --git a/assets/js/pages/userPage/profileInfos.js b/assets/js/pages/userPage/profileInfos.js index 850543c7..13d2d7d1 100644 --- a/assets/js/pages/userPage/profileInfos.js +++ b/assets/js/pages/userPage/profileInfos.js @@ -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,