diff options
author | Joris | 2025-01-26 17:58:57 +0100 |
---|---|---|
committer | Joris | 2025-01-26 17:58:57 +0100 |
commit | 24eeb54a6b7159964e8887ade7fa5173b50feb3a (patch) | |
tree | 91af6253df784445db9b084b02b38b37a83224e8 /templates/balance.html | |
parent | c5759f348e70cf54b4bfa4cd17e1fe1828ead30a (diff) |
Replace tera by minijinjamain
tera was doing the job all right, but minijinja has fewer dependencies.
Diffstat (limited to 'templates/balance.html')
-rw-r--r-- | templates/balance.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/balance.html b/templates/balance.html index b97ea40..c7f68e8 100644 --- a/templates/balance.html +++ b/templates/balance.html @@ -11,7 +11,7 @@ <ul class="g-Balance__ExceedingPayers"> {% for exceeding_payer in exceeding_payers %} <li class="g-Balance__ExceedingPayer"> - {{ exceeding_payer.0 }} : +{{ exceeding_payer.1 | euros() }} + {{ exceeding_payer[0] }} : +{{ exceeding_payer[1] | euros() }} </li> {% endfor %} </ul> @@ -35,14 +35,14 @@ {% for user_income in user_incomes %} <div class="g-Table__Row"> <span class="g-Table__Cell"> - {{ user_income.0 }} + {{ user_income[0] }} </span> <span class="g-Table__Cell g-Table__NumericCell"> - {{ user_income.1 | euros() }} + {{ user_income[1] | euros() }} </span> <span class="g-Table__Cell g-Table__NumericCell"> {% if total_income > 0 %} - {{ user_income.1 / total_income * 100 | round() }} % + {{ (user_income[1] / total_income * 100) | round }} % {% else %} – {% endif %} @@ -76,14 +76,14 @@ {% for user_payment in user_payments %} <div class="g-Table__Row"> <span class="g-Table__Cell"> - {{ user_payment.0 }} + {{ user_payment[0] }} </span> <span class="g-Table__Cell g-Table__NumericCell"> - {{ user_payment.1 | euros() }} + {{ user_payment[1] | euros() }} </span> <span class="g-Table__Cell g-Table__NumericCell"> {% if total_payments > 0 %} - {{ user_payment.1 / total_payments * 100 | round() }} % + {{ (user_payment[1] / total_payments * 100) | round }} % {% else %} – {% endif %} |