From 8141e90a8ecca8dc82f5e97056b7fb60e84cbc5a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 21 Apr 2016 13:43:58 -0500 Subject: [PATCH] Add commas to record/page count in grid footer I.e. when those numbers are big enough to need them. --- tailbone/templates/newgrids/grid.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/templates/newgrids/grid.mako b/tailbone/templates/newgrids/grid.mako index 9cb73c31..88bbbd43 100644 --- a/tailbone/templates/newgrids/grid.mako +++ b/tailbone/templates/newgrids/grid.mako @@ -35,9 +35,9 @@ % if grid.pageable and grid.pager:

- 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: - (page ${grid.pager.page} of ${grid.pager.page_count}) + ${"(page {} of {:,d})".format(grid.pager.page, grid.pager.page_count)} % endif