mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 23:08:24 -04:00
reverting changes
This commit is contained in:
@@ -1,47 +1,34 @@
|
|||||||
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, spark_bar_field %}
|
||||||
|
|
||||||
<div class="ajax-block-container">
|
<div class="ajax-block-container">
|
||||||
{% if template_statistics|length > 1 %}
|
{% if template_statistics|length > 1 %}
|
||||||
<div class="template-statistics-table table-overflow-x-auto">
|
<div class='template-statistics-table table-overflow-x-auto'>
|
||||||
<table class="usa-table width-full">
|
{% call(item, row_number) list_table(
|
||||||
<caption class="font-body-lg table-heading usa-sr-only">
|
template_statistics,
|
||||||
Messages sent by template
|
caption="Messages sent by template",
|
||||||
</caption>
|
caption_visible=False,
|
||||||
<thead class="table-field-headings">
|
border_visible=True,
|
||||||
<tr>
|
empty_message='',
|
||||||
<th class="table-field-heading-first" width="">
|
field_headings=[
|
||||||
<span>Template name</span>
|
'Template',
|
||||||
</th>
|
'Messages sent'
|
||||||
<th class="table-field-heading" width="">
|
],
|
||||||
<span>Folder</span>
|
field_headings_visible=False
|
||||||
</th>
|
) %}
|
||||||
<th class="table-field-heading" width="">
|
|
||||||
<span>Last used</span>
|
{% call row_heading() %}
|
||||||
</th>
|
<a class="usa-link template-statistics-table-template-name" href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template_id) }}">{{ item.template_name }}</a>
|
||||||
<th class="table-field-heading" width="">
|
<span class="template-statistics-table-hint">
|
||||||
<span>Created by</span>
|
{{ 1|message_count_label(item.template_type, suffix='template')|capitalize }}
|
||||||
</th>
|
</span>
|
||||||
<th class="table-field-heading" width="">
|
{% endcall %}
|
||||||
<span># Times used</span>
|
|
||||||
</th>
|
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
||||||
</tr>
|
{% endcall %}
|
||||||
</thead>
|
<a
|
||||||
<tbody>
|
href="{{ url_for('.template_usage', service_id=current_service.id) }}"
|
||||||
{% for item in template_statistics[:8] %}
|
class="usa-link show-more-no-border"
|
||||||
<tr class="table-row">
|
><span>See templates used by month</span></a>
|
||||||
<td>
|
|
||||||
<a class="usa-link 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">
|
|
||||||
{{ 1|message_count_label(item.template_type, suffix='template')|capitalize }}
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td><p>{{ item.template_folder }}</p></td>
|
|
||||||
<td><p>{{ item.last_used|format_datetime_table}}</p></td>
|
|
||||||
<td><p>{{ item.created_by }}</p></td>
|
|
||||||
<td><p>{{ item.count }}</p></td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<a href="/services/78409625-0c0a-485e-b82c-b19c8f4b1bdb/template-usage" class="usa-link show-more-no-border"><span>See templates by month</span></a>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user