mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-30 19:29:43 -04:00
These numbers don’t look very clickable white-on-black. Blue is the colour of links, so lets see if they are more clickable in blue. The same clicking-a-big-number thing is also happening on the activity page, so this commit also changes the activity page to look the same.
42 lines
1.4 KiB
HTML
42 lines
1.4 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 %}
|
|
|
|
<dl>
|
|
{% for item in template_statistics %}
|
|
<div class="grid-row">
|
|
|
|
<dt class="column-half">
|
|
<span class="spark-bar-label">
|
|
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template.id) }}">{{ item.template.name }}</a>
|
|
<span class="file-list-hint">
|
|
{{ message_count_label(1, item.template.template_type, suffix='template')|capitalize }}
|
|
</span>
|
|
</span>
|
|
</dt>
|
|
|
|
<dd class="column-half">
|
|
{% if template_statistics|length > 1 %}
|
|
<span class="spark-bar">
|
|
<span style="width: {{ item.usage_count / most_used_template_count * 100 }}%">
|
|
{{ big_number(
|
|
item.usage_count,
|
|
smallest=True
|
|
) }}
|
|
<span class="visually-hidden">
|
|
{{ message_count_label(item.usage_count, item.template.template_type) }}
|
|
</span>
|
|
</span>
|
|
</span>
|
|
{% else %}
|
|
<span class="heading-small">
|
|
{{ item.usage_count }}
|
|
{{ message_count_label(item.usage_count, item.template.template_type) }}
|
|
</span>
|
|
{% endif %}
|
|
</dd>
|
|
|
|
</div>
|
|
{% endfor %}
|
|
</dl>
|