From 6afa3130c7dda02637acb789e8e4e4152773bd88 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 08 2015 11:51:33 +0000 Subject: Adjust the list of pull-requests returned based on the status asked Specifying ?status=0 or ?status=False will return all closed or merged pull-request. Specifying either ?status=Closed or ?status=Merged will returned what is asked Specifying ?status=open or nothing, will returned the opened pull-requests --- diff --git a/pagure/templates/requests.html b/pagure/templates/requests.html index 96e7b5c..a814cf5 100644 --- a/pagure/templates/requests.html +++ b/pagure/templates/requests.html @@ -8,13 +8,14 @@

- {% if status and (status == False or status|lower == 'closed') %} - Closed {% endif -%} + {% if status|lower != 'open' and status|lower != 'false' %} + {{ status }} {% elif status|lower != 'open' -%} + Closed/Merged {% endif -%} Pull-requests ({{ requests|count }})

- {% if status and not (status == False or status|lower == 'closed') %} + {% if status|lower == 'open' %} + repo=repo.name) }}?status=0"> ({{ oth_requests }} Closed) {% else %}