Merge pull request #1197 from alphagov/put-template-ids-back-on-dashboard

Put template IDs back on the dashboard
This commit is contained in:
Chris Hill-Scott
2017-03-20 14:01:08 +00:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -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,

View File

@@ -25,7 +25,7 @@
</span>
{% endcall %}
{% if template_statistics|length > 1 %}
{{ spark_bar_field(item.count, most_used_template_count) }}
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
{% else %}
{% call field() %}
<span id='{{item.template_id}}' class="heading-small">