aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2017-03-27 16:42:52 +1100
committerStephen Finucane <stephen@that.guru>2017-04-15 12:56:23 +0100
commit9cfac5dbd7742622f3a6f59329c11b879f626f11 (patch)
treeac0b6034ff797453ffb1aa7df0348630027c8f76
parent6e32965b04cc326a678a7b7a499f1389e44b6de9 (diff)
downloadpatchwork-9cfac5dbd7742622f3a6f59329c11b879f626f11.tar
patchwork-9cfac5dbd7742622f3a6f59329c11b879f626f11.tar.gz
Display count of patches
Minor UI tweak - show the number of patches left in the current view. Suggested-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--patchwork/templates/patchwork/filters.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/patchwork/templates/patchwork/filters.html b/patchwork/templates/patchwork/filters.html
index efe4711..5331ac8 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">