mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
improve naming
This commit is contained in:
parent
d60841e1bb
commit
ba4d65d5f8
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{% extends "sidebar_table_layout.html" %}
|
||||
|
||||
{%- macro bill_amount_weighted(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)) }})
|
||||
{% endmacro -%}
|
||||
|
||||
|
@ -128,8 +128,8 @@
|
|||
{%- endif %}</td>
|
||||
<td>
|
||||
<span data-toggle="tooltip" data-placement="top"
|
||||
title="{{ bill_amount_weighted(bill, weights, g.project.default_currency, bill.converted_amount) if bill.original_currency != g.project.default_currency else '' }}">
|
||||
{{ bill_amount_weighted(bill, weights) }}
|
||||
title="{{ weighted_bill_amount(bill, weights, g.project.default_currency, bill.converted_amount) if bill.original_currency != g.project.default_currency else '' }}">
|
||||
{{ weighted_bill_amount(bill, weights) }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="bill-actions">
|
||||
|
|
Loading…
Reference in a new issue