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:
parent
eb64e709c4
commit
8141e90a8e
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue