From b1df3ce7ab8372f1b9fd226bdbb3fa6ad7ad0fe6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 12 2016 10:59:00 +0000 Subject: Fix displaying the status of the issues shown --- diff --git a/pagure/templates/issues.html b/pagure/templates/issues.html index b4b1cc1..cb1b5ea 100644 --- a/pagure/templates/issues.html +++ b/pagure/templates/issues.html @@ -9,10 +9,12 @@

- {% if status and status != 'Open' %} + {% if status|lower in ['open', 'true'] %} + {{ issues|count }} Open Issues + {% elif status|lower not in ['open', 'true', 'all', 'none'] %} {{ issues|count }} Closed Issues {% else %} - {{ issues|count }} Open Issues + {{ issues|count }} Issues {% endif %} {% if repo.milestones %} @@ -38,7 +40,7 @@ {% endif %}
- +