From d099a080e68d32661d4c249063590a40e67676ff Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Thu, 13 Oct 2016 10:52:09 +0100 Subject: [PATCH] Add ids for dashboard numbers and stats to be used by the functional tests --- app/templates/views/dashboard/_totals.html | 4 ++-- app/templates/views/dashboard/template-statistics.html | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/templates/views/dashboard/_totals.html b/app/templates/views/dashboard/_totals.html index 88725efb5..b7508aec1 100644 --- a/app/templates/views/dashboard/_totals.html +++ b/app/templates/views/dashboard/_totals.html @@ -2,7 +2,7 @@ {% from "components/message-count-label.html" import message_count_label %}
-
+
{{ big_number_with_status( statistics['email']['requested'], message_count_label(statistics['email']['requested'], 'email', suffix=''), @@ -13,7 +13,7 @@ link=url_for(".view_notifications", service_id=service_id, message_type='email', status='sending,delivered,failed') ) }}
-
+
{{ big_number_with_status( statistics['sms']['requested'], message_count_label(statistics['sms']['requested'], 'sms', suffix=''), diff --git a/app/templates/views/dashboard/template-statistics.html b/app/templates/views/dashboard/template-statistics.html index 11c7d677b..ef2a8ec20 100644 --- a/app/templates/views/dashboard/template-statistics.html +++ b/app/templates/views/dashboard/template-statistics.html @@ -15,6 +15,7 @@ ], field_headings_visible=True ) %} + {% call row_heading() %} {{ item.template_name }} @@ -25,7 +26,7 @@ {% endcall %} {% call field() %} {% if template_statistics|length > 1 %} - + {{ big_number( item.count, @@ -34,7 +35,7 @@ {% else %} - + {{ big_number( item.count, smallest=True