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:
Chris Hill-Scott
2020-02-12 10:45:15 +00:00
parent 97d6855ff7
commit 89b88ee4cb
8 changed files with 91 additions and 44 deletions

View File

@@ -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 %}