Remove unreachable code

An `if` statement higher up the page means this code will never get run
now. We can simplify the template by removing it.
This commit is contained in:
Chris Hill-Scott
2019-10-30 10:46:48 +00:00
parent 88a557f6c8
commit c919c25bf8

View File

@@ -34,18 +34,7 @@
</span>
{% endif %}
{% endcall %}
{% if template_statistics|length > 1 %}
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
{% else %}
{% call field() %}
<span id='{{item.template_id}}' class="heading-small">
{{ big_number(
item.count,
smallest=True
) }}
</span>
{% endcall %}
{% endif %}
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
{% endcall %}
{{ show_more(
url_for('.template_usage', service_id=current_service.id),