From a62d2a495ec5d7539b165a57ce1b550b3240a4fd Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 15 Jul 2018 18:37:10 +0200 Subject: [PATCH] Display group tag --- assets/css/pages/groups/sections/header.css | 4 ++++ assets/js/pages/groups/sections/header.js | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/assets/css/pages/groups/sections/header.css b/assets/css/pages/groups/sections/header.css index 9f8f119a..b2556eac 100644 --- a/assets/css/pages/groups/sections/header.css +++ b/assets/css/pages/groups/sections/header.css @@ -13,6 +13,10 @@ font-size: 200%; } +.group-header .group-tag { + color: #6f737b; +} + .group-header .col-info .fa { margin-right: 10px; width: 10px; diff --git a/assets/js/pages/groups/sections/header.js b/assets/js/pages/groups/sections/header.js index d3dbae9f..732f9a22 100644 --- a/assets/js/pages/groups/sections/header.js +++ b/assets/js/pages/groups/sections/header.js @@ -51,6 +51,16 @@ ComunicWeb.pages.groups.sections.header = { innerHTML: info.name }); + //Group tag (if any) + if(info.virtual_directory != "null"){ + createElem2({ + appendTo: firstColumn, + type: "small", + class: "group-tag", + innerHTML: "@" + info.virtual_directory + }); + } + //Second column : Information about the company var secondColumn = createElem2({ @@ -61,6 +71,9 @@ ComunicWeb.pages.groups.sections.header = { add_p(secondColumn, "Column 2 : Group info"); + + + //Third column : information about the group var thirdColumn = createElem2({ appendTo: row,