From eaf059fe91c76b3089b0c4735589fa921a6ff100 Mon Sep 17 00:00:00 2001 From: Glandos Date: Thu, 24 Mar 2022 17:31:50 +0100 Subject: [PATCH] Hide "each" amount when there's only one recipient (#1008) Fixes #1002 --- ihatemoney/templates/list_bills.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 44aa1bb5..0445d99d 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -1,7 +1,10 @@ {% extends "sidebar_table_layout.html" %} {%- 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 -%} {% block title %} - {{ g.project.name }}{% endblock %}