mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
parent
b89367a3b1
commit
eaf059fe91
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
{% extends "sidebar_table_layout.html" %}
|
{% extends "sidebar_table_layout.html" %}
|
||||||
|
|
||||||
{%- macro weighted_bill_amount(bill, weights, currency=bill.original_currency, amount=bill.amount) %}
|
{%- macro weighted_bill_amount(bill, weights, currency=bill.original_currency, amount=bill.amount) %}
|
||||||
{{ amount|currency(currency) }} ({{ _("%(amount)s each", amount=(amount / weights)|currency(currency)) }})
|
{{ amount|currency(currency) }}
|
||||||
|
{%- if weights != 1.0 %}
|
||||||
|
({{ _("%(amount)s each", amount=(amount / weights)|currency(currency)) }})
|
||||||
|
{%- endif -%}
|
||||||
{% endmacro -%}
|
{% endmacro -%}
|
||||||
|
|
||||||
{% block title %} - {{ g.project.name }}{% endblock %}
|
{% block title %} - {{ g.project.name }}{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue