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

Suggested-by: Stewart Smith <[email protected]>
Signed-off-by: Daniel Axtens <[email protected]>
---
 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 %}
+   &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;{{ 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

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to