Add letter counts to the platform admin page.

The big number counts are based on how many messages have been delivered. For letters we are using the requested count.
This commit is contained in:
Rebecca Law
2017-11-01 16:33:06 +00:00
parent 756bdd3181
commit 4acfd4101f
4 changed files with 15 additions and 7 deletions

View File

@@ -54,7 +54,7 @@
{% call row() %}
{% if not service['active'] %}
{% call field(status='default') %}
{% call field(status='default', border=False) %}
<span class="heading-medium">archived</span>
{% endcall %}
{% elif service['research_mode'] %}
@@ -62,7 +62,7 @@
<span class="research-mode">research mode</span>
{% endcall %}
{% elif not service['restricted'] %}
{% call field(status='error') %}
{% call field(status='error', border=False) %}
<span class="heading-medium">Live</span>
{% endcall %}
{% else %}
@@ -72,6 +72,15 @@
{{ stats_fields('sms', service['stats']) }}
{% endcall %}
{% call row() %}
{% call field(border=False) %}
{% endcall %}
{{ stats_fields('letter', service['stats']) }}
{% endcall %}
{% endcall %}
{% endfor %}