- {% call(item, row_number) list_table(
- notifications_by_type|reverse,
- caption='Messages sent since May 2023',
- caption_visible=False,
- field_headings=[
- 'Date',
- 99|message_count_noun('email')|capitalize,
- 99|message_count_noun('sms')|capitalize,
- ],
- empty_message='No data to show'
- ) %}
- {% call field() %}
- {{ item.date | format_date_normal }}
+
+
+ {% call(item, row_number) list_table(
+ notifications_by_type|reverse,
+ caption='Messages sent since May 2023',
+ caption_visible=False,
+ field_headings=[
+ 'Date',
+ 99|message_count_noun('email')|capitalize,
+ 99|message_count_noun('sms')|capitalize,
+ ],
+ empty_message='No data to show'
+ ) %}
+ {% call field() %}
+ {{ item.date | format_date_normal }}
+ {% endcall %}
+ {% call field() %}
+ {{ item.emails|format_thousands }}
+ {% endcall %}
+ {% call field() %}
+ {{ item.sms|format_thousands }}
+ {% endcall %}
{% endcall %}
- {% call field() %}
- {{ item.emails|format_thousands }}
- {% endcall %}
- {% call field() %}
- {{ item.sms|format_thousands }}
- {% endcall %}
- {% endcall %}
-
- Only showing the last {{ notifications_by_type|length }} days
-
+
+ Only showing the last {{ notifications_by_type|length }} days
+
+
@@ -82,26 +84,28 @@
) }}
-
- {% call(item, row_number) list_table(
- processing_time | reverse,
- caption='Messages sent within 10 seconds',
- caption_visible=False,
- field_headings=[
- 'Date', 'Percentage'
- ],
- empty_message='No data to show'
- ) %}
- {% call field() %}
- {{ item.date | format_date_normal }}
+
+
+ {% call(item, row_number) list_table(
+ processing_time | reverse,
+ caption='Messages sent within 10 seconds',
+ caption_visible=False,
+ field_headings=[
+ 'Date', 'Percentage'
+ ],
+ empty_message='No data to show'
+ ) %}
+ {% call field() %}
+ {{ item.date | format_date_normal }}
+ {% endcall %}
+ {% call field() %}
+ {{ '{:.2f}%'.format(item.percentage_under_10_seconds) }}
+ {% endcall %}
{% endcall %}
- {% call field() %}
- {{ '{:.2f}%'.format(item.percentage_under_10_seconds) }}
- {% endcall %}
- {% endcall %}
-
- Only showing the last {{ processing_time|length }} days
-
+
+ Only showing the last {{ processing_time|length }} days
+
+
@@ -120,23 +124,25 @@
using Notify.
-
- {% call(item, row_number) list_table(
- organizations_using_notify,
- caption='Organizations using Notify',
- caption_visible=False,
- field_headings=[
- 'Organization', 'Number of live services'
- ],
- empty_message='No data to show'
- ) %}
- {% call field() %}
- {{ item.organization_name }}
+
+
+ {% call(item, row_number) list_table(
+ organizations_using_notify,
+ caption='Organizations using Notify',
+ caption_visible=False,
+ field_headings=[
+ 'Organization', 'Number of live services'
+ ],
+ empty_message='No data to show'
+ ) %}
+ {% call field() %}
+ {{ item.organization_name }}
+ {% endcall %}
+ {% call field() %}
+ {{ item.count_of_live_services }}
+ {% endcall %}
{% endcall %}
- {% call field() %}
- {{ item.count_of_live_services }}
- {% endcall %}
- {% endcall %}
+
{% endblock %}
diff --git a/app/templates/views/usage.html b/app/templates/views/usage.html
index 5636536d5..1376163e1 100644
--- a/app/templates/views/usage.html
+++ b/app/templates/views/usage.html
@@ -73,6 +73,7 @@
#}
{% if months %}
+
{% call(item, row_index) list_table(
months,
@@ -129,6 +130,7 @@
{% endcall %}
+
{% endif %}
diff --git a/app/templates/withnav_template.html b/app/templates/withnav_template.html
index 45a81df58..40d2e10f1 100644
--- a/app/templates/withnav_template.html
+++ b/app/templates/withnav_template.html
@@ -9,16 +9,16 @@
{% include "service_navigation.html" %}