Add ids for dashboard numbers and stats to be used by the functional tests

This commit is contained in:
Imdad Ahad
2016-10-13 10:52:09 +01:00
parent 4a7273beb4
commit d099a080e6
2 changed files with 5 additions and 4 deletions

View File

@@ -15,6 +15,7 @@
],
field_headings_visible=True
) %}
{% call row_heading() %}
<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>
@@ -25,7 +26,7 @@
{% endcall %}
{% call field() %}
{% if template_statistics|length > 1 %}
<span class="spark-bar">
<span id='{{item.template_id}}' class="spark-bar">
<span style="width: {{ item.count / most_used_template_count * 100 }}%">
{{ big_number(
item.count,
@@ -34,7 +35,7 @@
</span>
</span>
{% else %}
<span class="heading-small">
<span id='{{item.template_id}}' class="heading-small">
{{ big_number(
item.count,
smallest=True