diff --git a/app/templates/partials/count.html b/app/templates/partials/count.html index 7b9cd5a47..17321d67f 100644 --- a/app/templates/partials/count.html +++ b/app/templates/partials/count.html @@ -6,53 +6,38 @@ {% for label, query_param, url, count in counts %} {% if query_param == 'pending' %}
- {% if link %} - - {% endif %} - - - {% if count is number %} - {% if currency %} - {{ "{}{:,.2f}".format(currency, count) }} - {% else %} - {{ "{:,}".format(count) }} - {% endif %} + + + {% if count is number %} + {% if currency %} + {{ "{}{:,.2f}".format(currency, count) }} {% else %} - {{ count }} + {{ "{:,}".format(count) }} {% endif %} - - {% if label %} - {{ query_param }} + {% else %} + {{ count }} {% endif %} - {% if link %} - - {% endif %} + {{ query_param }} +
{% else %}
- {% if link %} - - {% endif %} - - - {% if count is number %} - {% if currency %} - {{ "{}{:,.2f}".format(currency, count) }} - {% else %} - {{ "{:,}".format(count) }} - {% endif %} - {% else %} - {{ count }} - {% endif %} - - {% if label %} - {{ label }} + + + {% if count is number %} + {% if currency %} + {{ "{}{:,.2f}".format(currency, count) }} + {% else %} + {{ "{:,}".format(count) }} {% endif %} - - {% if link %} - - {% endif %} + {% else %} + {{ count }} + {% endif %} + + {{ label }} + +
{% endif %} {% endfor %}