mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
This commit adds two things: a section on the dashboard to show how many inbound messages the service has received in the last 7 days, and how recently an inbound message has been received --- Doesn’t show the contents of any messages, just like how the rest of the dashboard is an aggregation, never individual messages. a page to show all the inbound messages the service has received in the last 7 days --- This shows the first line of the message. Eventually this will link through to a ‘conversation’ page, where a service can see all the messages it’s received from a given phone number.
20 lines
568 B
HTML
20 lines
568 B
HTML
{% from "components/big-number.html" import big_number, big_number_with_status %}
|
|
|
|
<div class="ajax-block">
|
|
<div class="big-number-meta-wrapper">
|
|
{{
|
|
big_number_with_status(
|
|
inbound_sms_summary.count,
|
|
'text messages received',
|
|
link=url_for('.inbox', service_id=current_service.id),
|
|
show_failures=False
|
|
)
|
|
}}
|
|
<div class="big-number-meta">
|
|
{% if inbound_sms_summary.latest_message %}
|
|
latest message {{ inbound_sms_summary.latest_message | format_delta }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|