mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Restyle template statistics
This makes the template statistics section of the dashboard look less like its own weird thing and more like: - the templates page - the upcoming changes to the styling of the received text messages banner on the dashboard
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
{% macro show_more(url=None, label=None) %}
|
||||
{% macro show_more(url=None, label=None, with_border=True) %}
|
||||
{% if url and label %}
|
||||
<a href="{{ url }}" class="show-more"><span>{{ label }}</span></a>
|
||||
<a
|
||||
href="{{ url }}"
|
||||
class="show-more{% if not with_border %}-no-border{% endif %}"
|
||||
><span>{{ label }}</span></a>
|
||||
{% else %}
|
||||
<span class="show-more-empty"></span>
|
||||
{% endif %}
|
||||
|
||||
@@ -188,11 +188,8 @@
|
||||
) %}
|
||||
{% call field(align='right') %}
|
||||
<span {% if id %}id="{{ id }}"{% endif %} class="spark-bar">
|
||||
<span style="width: {{ count / max_count * 100 }}%">
|
||||
{{ big_number(
|
||||
count,
|
||||
smallest=True
|
||||
) }}
|
||||
<span class="spark-bar-bar" style="width: {{ count / max_count * 100 }}%">
|
||||
{{ '{:,.0f}'.format(count) }}
|
||||
</span>
|
||||
</span>
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user