[PATCH 3/3] Display count of patches

Daniel Axtens dja at axtens.net
Mon Mar 27 16:42:52 AEDT 2017


Minor UI tweak - show the number of patches left in the current
view.

Suggested-by: Stewart Smith <stewart at linux.vnet.ibm.com>
Signed-off-by: Daniel Axtens <dja at axtens.net>
---
 patchwork/templates/patchwork/filters.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/patchwork/templates/patchwork/filters.html b/patchwork/templates/patchwork/filters.html
index efe4711dec17..5331ac855aec 100644
--- a/patchwork/templates/patchwork/filters.html
+++ b/patchwork/templates/patchwork/filters.html
@@ -144,6 +144,10 @@ $(document).ready(function() {
    href="javascript:filter_click()"><span
    class="glyphicon glyphicon-plus-sign"></span></a>
  {% endif %}
+ {% with patch_count=page.paginator.count %}
+      |   {{ patch_count }}
+   patch{{ patch_count | pluralize:"es" }}
+ {% endwith %}
  </div>
  <div id="filterform" style="padding-top: 1em; display: none">
   <form class="form-horizontal" method="get">
-- 
2.9.3



More information about the Patchwork mailing list