mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Put template IDs back on the dashboard
Removed as part of refactoring the code to generate the graphs of
template usage on the dashboard:
4a226a7a29 (diff-cf78cb5c29a2d3c4d45b61d8617824b7L29)
Didn’t realise that they were used by the functional tests.
This commit puts them back while keeping the code reuse.
This commit is contained in:
@@ -135,10 +135,11 @@
|
||||
|
||||
{% macro spark_bar_field(
|
||||
count,
|
||||
max_count
|
||||
max_count,
|
||||
id=None
|
||||
) %}
|
||||
{% call field(align='right') %}
|
||||
<span class="spark-bar">
|
||||
<span {% if id %}id="{{ id }}"{% endif %} class="spark-bar">
|
||||
<span style="width: {{ count / max_count * 100 }}%">
|
||||
{{ big_number(
|
||||
count,
|
||||
|
||||
Reference in New Issue
Block a user