Replace message count macros with formatters

We prefer formatters now. Removing uses of the aliasing macro lets
remove it entirely.
This commit is contained in:
Chris Hill-Scott
2021-01-06 13:41:16 +00:00
parent 0327ece7ad
commit 24b579418f
34 changed files with 36 additions and 77 deletions

View File

@@ -1,12 +1,11 @@
{% from 'components/big-number.html' import big_number %}
{% from 'components/message-count-label.html' import message_count_label %}
<div class="govuk-grid-row bottom-gutter-2-3">
<div class="govuk-grid-column-one-half">
<div class="keyline-block">
{{ big_number(
job.notification_count,
message_count_label(job.notification_count, 'letter', suffix='')|capitalize,
job.notification_count|message_count_label('letter', suffix='')|capitalize,
smaller=True
)}}
</div>