From 0be49b0d35cf6042347ae4843fc8533db08a4bf2 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 7 Jul 2018 07:36:03 +0200 Subject: [PATCH] Made group registration level and visibility public --- assets/js/pages/groups/sections/header.js | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/assets/js/pages/groups/sections/header.js b/assets/js/pages/groups/sections/header.js index 71ff29ee..ac000545 100644 --- a/assets/js/pages/groups/sections/header.js +++ b/assets/js/pages/groups/sections/header.js @@ -82,6 +82,31 @@ ComunicWeb.pages.groups.sections.header = { innerHTML: ' '+ info.number_members+' members' }); + //Group visibility + var visibility = { + open: "Open group", + private: "Private group", + secrete: "Secrete group" + }; + createElem2({ + appendTo: thirdColumn, + type: "div", + innerHTML: " " + visibility[info.visibility] + }); + + //Group registration + var levels = { + open: "Open registration", + moderated: "Moderated registration", + closed: "Closed registration" + } + createElem2({ + appendTo: thirdColumn, + type: "div", + innerHTML: " " + levels[info.registration_level] + }); + + //Display membership level if(signed_in()) ComunicWeb.pages.groups.sections.membershipBlock.display(info, thirdColumn);