Make right-aligned big numbers left aligned

This commit is contained in:
Chris Hill-Scott
2016-05-05 10:34:15 +01:00
parent d93eb4f30e
commit b5d5689d5c
4 changed files with 13 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
{% macro big_number(number, label, label_link=None, currency='', right_aligned=False) %}
<div class="big-number{% if right_aligned %}-right-aligned{% endif %}">
{% macro big_number(number, label, label_link=None, currency='', smaller=False) %}
<div class="big-number{% if smaller %}-smaller{% endif %}">
{% if number is number %}
{% if currency %}
{{ "{}{:,.2f}".format(currency, number) }}