From 00d2b596b0018d114daa97c9db237c376ffd11db Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Sep 10 2018 03:59:24 +0000 Subject: [PATCH 1/3] add milestone to metadata shown on issue listing Fixes #3620 --- diff --git a/pagure/templates/_render_issues.html b/pagure/templates/_render_issues.html index a44a90a..e24dcda 100644 --- a/pagure/templates/_render_issues.html +++ b/pagure/templates/_render_issues.html @@ -27,19 +27,24 @@
+ + {% if issue.milestone %} + {{ issue.milestone }} + {% endif %} + {% if issue.priority is not none %} - {{ repo.priorities[issue.priority | string] }} + {{ repo.priorities[issue.priority | string] }} {% endif %} {% if issue.assignee %} - + {{ issue.assignee.username | avatar(size=20) | safe}} {% endif %} {% if issue.user_comments|count > 0 %} - + {{issue.user_comments|count}} From 1439b534681a9f698a79aea4c739b76fcde60fc2 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Sep 10 2018 04:53:05 +0000 Subject: [PATCH 2/3] add quicklinks to metadata on issues list to filter on that item Fixes #3624 --- diff --git a/pagure/templates/_render_issues.html b/pagure/templates/_render_issues.html index e24dcda..109660d 100644 --- a/pagure/templates/_render_issues.html +++ b/pagure/templates/_render_issues.html @@ -1,4 +1,4 @@ -{% macro render_issue_row(issue, repo, username, subtitle=True, class="", showproject=False) %} +{% macro render_issue_row(issue, repo, username, subtitle=True, class="", showproject=False, filterstatus=None) %} {% if issue.status == 'Open' %} {% set status_color = "success" %} {% else %} @@ -29,17 +29,56 @@ {% if issue.milestone %} - {{ issue.milestone }} + + + {% if filterstatus %} + + {% endif %} + {{ issue.milestone }} + {% if filterstatus %} + + {% endif %} + {% endif %} {% if issue.priority is not none %} - {{ repo.priorities[issue.priority | string] }} + + + {% if filterstatus %} + + {% endif %} + {{ repo.priorities[issue.priority | string] }} + {% if filterstatus %} + + {% endif %} + {% endif %} {% if issue.assignee %} + {% if filterstatus %} + + {% endif %} {{ issue.assignee.username | avatar(size=20) | safe}} + {% if filterstatus %} + + {% endif %} {% endif %} @@ -99,6 +138,7 @@
{% for tag in issue.tags %} + {% if filterstatus %} + tags=tag.tag, + status=filterstatus) }}"> {{ tag.tag }} + {% else %} + + {{ tag.tag }} + + {% endif %} {% endfor %}
{% endif %} diff --git a/pagure/templates/issues.html b/pagure/templates/issues.html index a6c207d..7a720ca 100644 --- a/pagure/templates/issues.html +++ b/pagure/templates/issues.html @@ -451,7 +451,7 @@ {% if issues %} {% for issue in issues %} - {{render_issue_row(issue, repo, username)}} + {{render_issue_row(issue, repo, username, filterstatus=status)}} {% endfor %} {% else %}
From a56157517070149f5d846aa27dd082caa9a874ed Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Sep 10 2018 07:45:46 +0000 Subject: [PATCH 3/3] add filtering link for assignee on PR list fixes: #3624 --- diff --git a/pagure/templates/_render_pullrequests.html b/pagure/templates/_render_pullrequests.html index e229e22..417dc89 100644 --- a/pagure/templates/_render_pullrequests.html +++ b/pagure/templates/_render_pullrequests.html @@ -1,4 +1,4 @@ -{% macro render_pullrequest_row(request, repo, username, subtitle=True, class="", showproject=False) %} +{% macro render_pullrequest_row(request, repo, username, subtitle=True, class="", showproject=False, filterstatus=None) %} {% if request.status|lower == 'open' %} {% set status_color = "success" %} {% elif request.status|lower == 'merged' %} @@ -30,7 +30,18 @@ {% if request.assignee %} + {% if filterstatus %} + + {% endif %} {{ request.assignee.username | avatar(size=20) | safe}} + {% if filterstatus %} + + {% endif %} {% endif %} diff --git a/pagure/templates/requests.html b/pagure/templates/requests.html index b88abb3..81a714a 100644 --- a/pagure/templates/requests.html +++ b/pagure/templates/requests.html @@ -230,7 +230,7 @@ {% if requests %} {% for request in requests %} - {{render_pullrequest_row(request, repo, username)}} + {{render_pullrequest_row(request, repo, username, filterstatus=status)}} {% endfor %} {% else %}