mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Refactor dashboard banner CSS and fix its text
Switches the CSS to use flexbox for layout and uses a macro to let the text support single and multiple messsages.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% from "components/big-number.html" import big_number, big_number_with_status %}
|
||||
{% from "components/message-count-label.html" import message_count_label %}
|
||||
|
||||
<div class="ajax-block">
|
||||
{% if inbound_sms_summary != None %}
|
||||
@@ -7,7 +8,7 @@
|
||||
{{ inbound_sms_summary.count|format_thousands }}
|
||||
</span>
|
||||
<span class="banner-dashboard-count-label">
|
||||
text messages received
|
||||
{{ message_count_label(inbound_sms_summary.count, 'sms', suffix='received') }}
|
||||
</span>
|
||||
{% if inbound_sms_summary.most_recent %}
|
||||
<span class="banner-dashboard-meta">
|
||||
|
||||
Reference in New Issue
Block a user