mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 18:08:24 -04:00
This follows the pattern of what we’ve done with services, users and events. It gives us a better interface to the data we get back from the API than dealing with the raw JSON directly. Now is a good time to do this because we’re going to be making a bunch of changes to the jobs pages, and those changes will be easier to code and understand with a sesnsible model behind them.
24 lines
670 B
HTML
24 lines
670 B
HTML
{% from 'components/big-number.html' import big_number %}
|
|
{% from 'components/message-count-label.html' import message_count_label %}
|
|
|
|
<div class="grid-row bottom-gutter-2-3">
|
|
<div class="column-half">
|
|
<div class="keyline-block">
|
|
{{ big_number(
|
|
job.notification_count,
|
|
message_count_label(job.notification_count, 'letter', suffix='')|capitalize,
|
|
smaller=True
|
|
)}}
|
|
</div>
|
|
</div>
|
|
<div class="column-half">
|
|
<div class="keyline-block">
|
|
{{ big_number(
|
|
job.letter_timings.earliest_delivery|string|format_date_short,
|
|
'Estimated delivery date',
|
|
smaller=True
|
|
)}}
|
|
</div>
|
|
</div>
|
|
</div>
|