Added follow block.

This commit is contained in:
Pierre HUBERT
2018-07-19 14:34:19 +02:00
parent a5815272c8
commit 61a20e8708
6 changed files with 106 additions and 0 deletions

View File

@ -155,6 +155,10 @@ ComunicWeb.pages.groups.sections.header = {
//Display membership level
if(signed_in())
ComunicWeb.pages.groups.sections.membershipBlock.display(info, thirdColumn);
//Display follow block
if(signed_in() && ComunicWeb.components.groups.utils.isGroupMember(info))
ComunicWeb.pages.groups.sections.followBlock.display(info, thirdColumn);
//If the user is an admin, add a link to configure the page
if(signed_in() && info.membership == "administrator"){