From: Daniel Axtens Date: Mon, 27 Mar 2017 05:42:52 +0000 (+1100) Subject: Display count of patches X-Git-Tag: v2.0.0-rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cfac5dbd7742622f3a6f59329c11b879f626f11;p=thirdparty%2Fpatchwork.git Display count of patches Minor UI tweak - show the number of patches left in the current view. Suggested-by: Stewart Smith Signed-off-by: Daniel Axtens Reviewed-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/filters.html b/patchwork/templates/patchwork/filters.html index efe4711d..5331ac85 100644 --- a/patchwork/templates/patchwork/filters.html +++ b/patchwork/templates/patchwork/filters.html @@ -144,6 +144,10 @@ $(document).ready(function() { href="javascript:filter_click()"> {% endif %} + {% with patch_count=page.paginator.count %} +    |   {{ patch_count }} + patch{{ patch_count | pluralize:"es" }} + {% endwith %}