diff --git a/pagure/templates/group_info.html b/pagure/templates/group_info.html index 24f1461..9d9699c 100644 --- a/pagure/templates/group_info.html +++ b/pagure/templates/group_info.html @@ -21,7 +21,8 @@ {{ group.group_name }} - {% if authenticated and (member or admin) %} + {% if authenticated and (member or admin) + and config.get('ENABLE_GROUP_MNGT') %} @@ -51,13 +52,14 @@ Group Members {{group.users|count}} - {% if authenticated and (member or admin) %} - + {% if authenticated and (member or admin) and config.get('ENABLE_GROUP_MNGT') %} + + {% endif %} - {% if authenticated and (member or admin) %} + {% if authenticated and (member or admin) and config.get('ENABLE_GROUP_MNGT') %} @@ -74,7 +76,8 @@ {{ user.default_email | avatar(28) | safe }} {{ user.user }} - {% if authenticated and user != group.creator and (member or admin) %} + {% if authenticated and user != group.creator and (member or admin) + and config.get('ENABLE_GROUP_MNGT') %} diff --git a/pagure/templates/group_list.html b/pagure/templates/group_list.html index 09aaf08..d15c2cb 100644 --- a/pagure/templates/group_list.html +++ b/pagure/templates/group_list.html @@ -19,7 +19,7 @@ Groups {{ groups | length }} - {% if authenticated %} + {% if authenticated and config.get('ENABLE_GROUP_MNGT', False) %} @@ -115,12 +115,14 @@ $(document).ready(function() { e.preventDefault(); return false; } -}); + }); + {% if config.get('ENABLE_GROUP_MNGT') %} $('#add_group').on( 'shown.bs.modal', function () { $('#group_name').focus() } ); + {% endif %} $('#term').selectize({ valueField: 'group',