From 3f71ee1a0695f2dcf5e79fd23c7c1234a3fc7bca Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 3 Mar 2011 21:57:41 -0400 Subject: [PATCH] Show current page and total pages for generic lists sub template --- apps/common/templates/generic_list_subtemplate.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/templates/generic_list_subtemplate.html b/apps/common/templates/generic_list_subtemplate.html index 824e597731..517a813845 100755 --- a/apps/common/templates/generic_list_subtemplate.html +++ b/apps/common/templates/generic_list_subtemplate.html @@ -15,7 +15,7 @@

{% ifnotequal page_obj.paginator.num_pages 1 %} - {% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total %}List of {{ title }} ({{ start }} - {{ end }} out of {{ total }}){% endblocktrans %} + {% blocktrans with page_obj.start_index as start and page_obj.end_index as end and page_obj.paginator.object_list|length as total and page_obj.number as page_number and page_obj.paginator.num_pages as total_pages %}List of {{ title }} ({{ start }} - {{ end }} out of {{ total }}) (Page {{ page_number }} of {{ total_pages }}){% endblocktrans %} {% else %} {% blocktrans with page_obj.paginator.object_list|length as total %}List of {{ title }} ({{ total }}){% endblocktrans %} {% endifnotequal %}