Add commas to record/page count in grid footer

I.e. when those numbers are big enough to need them.
This commit is contained in:
Lance Edgar 2016-04-21 13:43:58 -05:00
parent eb64e709c4
commit 8141e90a8e

View file

@ -35,9 +35,9 @@
% if grid.pageable and grid.pager: % if grid.pageable and grid.pager:
<div class="pager"> <div class="pager">
<p class="showing"> <p class="showing">
showing ${grid.pager.first_item} thru ${grid.pager.last_item} of ${grid.pager.item_count} ${"showing {} thru {} of {:,d}".format(grid.pager.first_item, grid.pager.last_item, grid.pager.item_count)}
% if grid.pager.page_count > 1: % if grid.pager.page_count > 1:
(page ${grid.pager.page} of ${grid.pager.page_count}) ${"(page {} of {:,d})".format(grid.pager.page, grid.pager.page_count)}
% endif % endif
</p> </p>
<p class="page-links"> <p class="page-links">