Merge pull request #3837 from alphagov/fix-psort-order-performance-page

Fix sort order on performance page
This commit is contained in:
Chris Hill-Scott
2021-03-16 10:19:23 +00:00
committed by GitHub
2 changed files with 9 additions and 7 deletions

View File

@@ -53,7 +53,7 @@
<div class="dashboard-table">
{% call(item, row_number) list_table(
notifications_by_type,
notifications_by_type|reverse,
caption='Messages sent since May 2016',
caption_visible=False,
field_headings=[

View File

@@ -132,13 +132,15 @@ def test_should_render_performance_page(
''
'Messages sent since May 2016 '
'Date Emails Text messages Letters '
'21 February 2021 1,234,567 123,456 123 '
'22 February 2021 1 2 3 '
'23 February 2021 1 2 3 '
'24 February 2021 1 2 3 '
'25 February 2021 1 2 3 '
'26 February 2021 1 2 3 '
'27 February 2021 1 2 3 '
'26 February 2021 1 2 3 '
'25 February 2021 1 2 3 '
'24 February 2021 1 2 3 '
'23 February 2021 1 2 3 '
'22 February 2021 1 2 3 '
'21 February 2021 1,234,567 123,456 123 '
'Only showing the last 7 days '
''
'Messages sent within 10 seconds '