From f1011c2a05a31eb75474adaa7ede135b28f7112a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 08 2019 10:17:32 +0000 Subject: Fix showing an input box if the minimum score for PR is set to 0 Up until now this was changed to a checkbox in these situations, now it remains an input/text field allowing to change it back to something else. Fixes https://pagure.io/pagure/issue/4019 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/settings_options.html b/pagure/templates/settings_options.html index 6b42c35..98a82f1 100644 --- a/pagure/templates/settings_options.html +++ b/pagure/templates/settings_options.html @@ -13,7 +13,21 @@ Project Options {% elif not config.get('DOC_APP_URL') and key in ['project_documentation'] %} {% elif not config.get('WEBHOOK') and key in ['Web-hooks'] %} {% else %} - {% if repo.settings[key] in [True, False, 'y'] %} + {% if key in ['Web-hooks'] %} +
+ + +
+ {% elif key in ['Minimum_score_to_merge_pull-request'] %} +
+ + +
+ {% elif repo.settings[key] in [True, False, 'y'] %}
- {% elif key in ['Web-hooks'] %} -
- - -
{% else %}