From 70aed86b204f9ac7c9d22d08ae3e171f4b5ca060 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 12 2016 08:58:23 +0000 Subject: Do not show the 'Default priority set' button if there are priorities --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index e5bd625..b5a59e9 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -398,11 +398,13 @@ Add new priority + {% if not repo.priorities %}
Default priority set
+ {% endif %}
@@ -548,7 +550,7 @@ $('#new_priority').click(function(e) {
' ); }); - +{% if not repo.priorities %} $('#default_priorities').click(function(e) { $('#priorities').html(''); var def_priorities = ['', 'High', 'Normal', 'Low']; @@ -568,6 +570,7 @@ $('#default_priorities').click(function(e) { } console.log($('#priorities')); }); +{% endif %} {% endblock %}