mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Made group registration level and visibility public
This commit is contained in:
parent
0c20b97b2f
commit
0be49b0d35
@ -82,6 +82,31 @@ ComunicWeb.pages.groups.sections.header = {
|
|||||||
innerHTML: '<i class="fa fa-group"></i> '+ info.number_members+' members'
|
innerHTML: '<i class="fa fa-group"></i> '+ info.number_members+' members'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Group visibility
|
||||||
|
var visibility = {
|
||||||
|
open: "Open group",
|
||||||
|
private: "Private group",
|
||||||
|
secrete: "Secrete group"
|
||||||
|
};
|
||||||
|
createElem2({
|
||||||
|
appendTo: thirdColumn,
|
||||||
|
type: "div",
|
||||||
|
innerHTML: "<i class='fa fa-lock'></i> " + visibility[info.visibility]
|
||||||
|
});
|
||||||
|
|
||||||
|
//Group registration
|
||||||
|
var levels = {
|
||||||
|
open: "Open registration",
|
||||||
|
moderated: "Moderated registration",
|
||||||
|
closed: "Closed registration"
|
||||||
|
}
|
||||||
|
createElem2({
|
||||||
|
appendTo: thirdColumn,
|
||||||
|
type: "div",
|
||||||
|
innerHTML: "<i class='fa fa-pencil'></i> " + levels[info.registration_level]
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//Display membership level
|
//Display membership level
|
||||||
if(signed_in())
|
if(signed_in())
|
||||||
ComunicWeb.pages.groups.sections.membershipBlock.display(info, thirdColumn);
|
ComunicWeb.pages.groups.sections.membershipBlock.display(info, thirdColumn);
|
||||||
|
Loading…
Reference in New Issue
Block a user