mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 00:48:25 -04:00
This is semantically more accurate because it’s describing the whole table, not just the first column. Adjusting the font-size to make it sit within the ‘In the last 7 days’ section. Adjusting the spacing because now that we have more borders we don’t need quite so much whitespace to separate different bits of the page.
48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
{% from "components/big-number.html" import big_number %}
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
|
{% from "components/big-number.html" import big_number %}
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, spark_bar_field %}
|
|
{% from "components/show-more.html" import show_more %}
|
|
|
|
<div class="ajax-block-container">
|
|
{% if template_statistics|length > 1 %}
|
|
<div class='template-statistics-table'>
|
|
{% call(item, row_number) list_table(
|
|
template_statistics,
|
|
caption="By template",
|
|
caption_visible=True,
|
|
empty_message='',
|
|
field_headings=[
|
|
'Template',
|
|
'Messages sent'
|
|
],
|
|
field_headings_visible=False
|
|
) %}
|
|
|
|
{% call row_heading() %}
|
|
{% if item.is_precompiled_letter %}
|
|
<span class="template-statistics-table-template-name">
|
|
Provided as PDF
|
|
</span>
|
|
<span class="template-statistics-table-hint">
|
|
Letter
|
|
</span>
|
|
{% else %}
|
|
<a class="template-statistics-table-template-name" href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template_id) }}">{{ item.template_name }}</a>
|
|
<span class="template-statistics-table-hint">
|
|
{{ message_count_label(1, item.template_type, suffix='template')|capitalize }}
|
|
</span>
|
|
{% endif %}
|
|
{% endcall %}
|
|
|
|
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
|
{% endcall %}
|
|
{{ show_more(
|
|
url_for('.template_usage', service_id=current_service.id),
|
|
'See templates used by month',
|
|
with_border=False
|
|
) }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|