From 81ccc6008477484e599aeb297225f976838abe3a Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Feb 09 2017 09:03:18 +0000 Subject: Adjust repo settings frontend when ENABLE_TICKETS is False --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index 3d4fd97..57de712 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -269,6 +269,7 @@ Public notifications
+ {% if config.get('ENABLE_TICKETS', True) %}

The email addresses entered below will receive all the notifications related to (public) issue and pull-requests, this includes @@ -278,7 +279,18 @@

To enter multiple addresses, simply delimit then with a comma.

+ {% else %}
+

+ The email addresses entered below will receive all the notifications + related to and pull-requests, this includes + notifications about new pull-request, new comment + and status change. +

+

+ To enter multiple addresses, simply delimit then with a comma. +

+ {% endif %}
+ {% if config.get('ENABLE_TICKETS', True) %}
Issues notifications @@ -303,6 +316,7 @@
+ {% endif %}
Pull-requests notifications @@ -338,19 +352,21 @@ Re-generate git repos
- - - - {{ form.csrf_token }} - + {% if config.get('ENABLE_TICKETS', True) %} +
+ + + {{ form.csrf_token }} +
+ {% endif %}
{% set idcount = 1 %} {% for plugin in plugins %} + {% if not config.get('ENABLE_TICKETS', True) and plugin in ['Pagure tickets'] %} + {% else %}
{% set idcount = idcount+1 %} + {% endif %} {% endfor %}