improve naming

This commit is contained in:
Glandos 2021-12-20 16:51:46 +01:00
parent d60841e1bb
commit ba4d65d5f8

View file

@ -1,6 +1,6 @@
{% extends "sidebar_table_layout.html" %} {% 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)) }}) {{ amount|currency(currency) }} ({{ _("%(amount)s each", amount=(amount / weights)|currency(currency)) }})
{% endmacro -%} {% endmacro -%}
@ -128,8 +128,8 @@
{%- endif %}</td> {%- endif %}</td>
<td> <td>
<span data-toggle="tooltip" data-placement="top" <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 '' }}"> title="{{ weighted_bill_amount(bill, weights, g.project.default_currency, bill.converted_amount) if bill.original_currency != g.project.default_currency else '' }}">
{{ bill_amount_weighted(bill, weights) }} {{ weighted_bill_amount(bill, weights) }}
</span> </span>
</td> </td>
<td class="bill-actions"> <td class="bill-actions">