diff --git a/assets/css/pages/userPage/profileInfos.css b/assets/css/pages/userPage/profileInfos.css new file mode 100644 index 00000000..dc257059 --- /dev/null +++ b/assets/css/pages/userPage/profileInfos.css @@ -0,0 +1,12 @@ +/** + * Profile information stylesheet + * + * @author Pierre HUBERT + */ + +.user-tag-in-profile { + color: #6f737b; + text-align: center; + font-size: 90%; + margin-bottom: 10px; +} \ No newline at end of file diff --git a/assets/js/pages/userPage/profileInfos.js b/assets/js/pages/userPage/profileInfos.js index d5804779..95c6842d 100644 --- a/assets/js/pages/userPage/profileInfos.js +++ b/assets/js/pages/userPage/profileInfos.js @@ -64,6 +64,16 @@ ComunicWeb.pages.userPage.profileInfos = { }); + //Add user virtual directory (if any) + if(infos.virtualDirectory != ""){ + var userTag = createElem2({ + appendTo: boxBody, + type: "div", + innerHTML: "@"+ infos.virtualDirectory, + class: "user-tag-in-profile" + }); + } + //Show user likes var userLikesTarget = createElem2({ diff --git a/system/config/dev.config.php b/system/config/dev.config.php index 599481e6..04c6a4c5 100644 --- a/system/config/dev.config.php +++ b/system/config/dev.config.php @@ -181,6 +181,7 @@ class Dev { //User Page "css/pages/userPage/main.css", "css/pages/userPage/accessForbidden.css", + "css/pages/userPage/profileInfos.css", //Post page "css/pages/postPage/main.css",