Fix multiplier for single tag.

This commit is contained in:
James Cole 2016-03-02 07:04:48 +01:00
parent 4c35d52234
commit 04f5214bb7

View File

@ -4,9 +4,14 @@
<h3 class="box-title">{{ 'tags'|_ }}</h3>
</div>
<div class="box-body">
{% if tag|length == 1 %}
{% set multiplier = 12 %}
{% else %}
{% set multiplier = 30 %}
{% endif %}
{% for tag in tags %}
<span title="{{ tag.amount|formatAmountPlain }}"
style="font-size: {{ tag.fontsize * 30 }}px"
style="font-size: {{ tag.fontsize * multiplier }}px"
>&nbsp;<a href="{{ route('tags.show', tag.id) }}">{{ tag.tag }}</a>&nbsp;</span>
{% endfor %}