diff --git a/app/templates/components/table.html b/app/templates/components/table.html index 199b9083c..dc1460a20 100644 --- a/app/templates/components/table.html +++ b/app/templates/components/table.html @@ -69,7 +69,7 @@ 'table-field-right-aligned' if align == 'right' else 'table-field-center-aligned' if align == 'center' else 'table-field-left-aligned' - %} + %} {% set border = '' if border else 'table-field-noborder' %} {% set wrap = 'table-field-wrap-text' if wrap else '' %} @@ -169,7 +169,7 @@ {% if notification.status|format_notification_status_as_url(notification.notification_type) %} {% endif %} -

+

{{ notification.status|format_notification_status_as_time( notification.created_at|format_datetime_short, (notification.updated_at or notification.created_at)|format_datetime_short @@ -180,6 +180,42 @@ {% endif %} {% endmacro %} +{% macro notification_carrier_field(notification) %} + + + + {% if not notification %} + {% call field(align='right') %}{% endcall %} + {% else %} + + {% call field( + align='right' + ) %} +

+ {{ notification.carrier}} +

+ {% if displayed_on_single_line %}{% endif %} + {% endcall %} + {% endif %} +{% endmacro %} + +{% macro notification_carrier_message_field(notification) %} + + {% if not notification %} + {% call field(align='right') %}{% endcall %} + {% else %} + + {% call field( + status=status, + align='right' + ) %} +

+ {{notification.provider_response}} +

+ {% if displayed_on_single_line %}{% endif %} + {% endcall %} + {% endif %} +{% endmacro %} {% macro spark_bar_field( count, @@ -189,7 +225,7 @@ {% call field(align='right') %} - {{ '{:,.0f}'.format(count) }} + {{ '{:,.0f}'.format(count) }}