mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
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:
@@ -1,5 +1,4 @@
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
{% from "components/message-count-label.html" import message_count_label %}
|
||||
{% from "components/pill.html" import pill %}
|
||||
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, spark_bar_field %}
|
||||
|
||||
@@ -44,7 +43,7 @@
|
||||
{% call row_heading() %}
|
||||
<a class="govuk-link govuk-link--no-visited-state template-statistics-table-template-name" href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.id) }}">{{ item.name }}</a>
|
||||
<span class="template-statistics-table-hint">
|
||||
{{ message_count_label(1, item.type, suffix='template')|capitalize }}
|
||||
{{ 1|message_count_label(item.type, suffix='template')|capitalize }}
|
||||
</span>
|
||||
{% endcall %}
|
||||
{{ spark_bar_field(item.requested_count, most_used_template_count) }}
|
||||
|
||||
Reference in New Issue
Block a user