From ba50a00ceed8c03fa7a8c01a6929990a8234981b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 04 2016 08:28:33 +0000 Subject: Show/Hide the group related buttons based on the configuration Since there is now a configuration key to allow managing groups in pagure --- 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') %}