diff --git a/app/templates/partials/count.html b/app/templates/partials/count.html index 7915b31e1..7b9cd5a47 100644 --- a/app/templates/partials/count.html +++ b/app/templates/partials/count.html @@ -1,4 +1,3 @@ -{% from "components/big-number.html" import big_number %} {% from "components/pill.html" import pill %}
@@ -6,11 +5,55 @@
{% for label, query_param, url, count in counts %} {% if query_param == 'pending' %} -
{{ big_number(count, query_param, smaller=True) }}
+ {% else %} -
{{ big_number(count, label, smaller=True) }}
+ {% else %} diff --git a/app/templates/views/dashboard/_jobs.html b/app/templates/views/dashboard/_jobs.html index c5dbab9bf..22dcb21f6 100644 --- a/app/templates/views/dashboard/_jobs.html +++ b/app/templates/views/dashboard/_jobs.html @@ -1,5 +1,4 @@ {% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %} -{% from "components/big-number.html" import big_number -%}
{% call(item, row_number) list_table( @@ -36,28 +35,88 @@ {% endcall %} {% call field() %} {% if item.scheduled %} - {{ big_number( - item.notification_count, - smallest=True, - label=item.notification_count|message_count_label( - item.template_type, - suffix='waiting to send' - ) - ) }} + {% if link %} + + {% endif %} + + + {% if item.notification_count is number %} + {% if currency %} + {{ "{}{:,.2f}".format(currency, item.notification_count) }} + {% else %} + {{ "{:,}".format(item.notification_count) }} + {% endif %} + {% else %} + {{ item.notification_count }} + {% endif %} + + {% if item.notification_count %} + {{ item.notification_count|message_count_label(item.template_type,suffix='waiting to send') }} + {% endif %} + + {% if link %} + + {% endif %} {% else %}
- {{ big_number(item.notifications_delivered, smallest=True, label='delivered') }} + + + {% if item.notifications_delivered is number %} + {{ "{:,}".format(item.notifications_delivered) }} + {% else %} + {{ item.notifications_delivered }} + {% endif %} + + delivered} +
{% endif %}