]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Display count of patches
authorDaniel Axtens <dja@axtens.net>
Mon, 27 Mar 2017 05:42:52 +0000 (16:42 +1100)
committerStephen Finucane <stephen@that.guru>
Sat, 15 Apr 2017 11:56:23 +0000 (12:56 +0100)
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>
patchwork/templates/patchwork/filters.html

index efe4711dec1763de366b8058f91f4d8bbe033d69..5331ac855aecc07b63163426be90e3149d6bba2e 100644 (file)
@@ -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">