diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 81f8cd56..bd89e234 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -105,7 +105,13 @@ {{ bill.date }} {{ bill.payer }} {{ bill.what }} - {{ bill.owers|join(', ', 'name') }} + {% if bill.owers|length == g.project.members|length -%} + {{ _("Everyone") }} + {%- elif bill.owers|length > g.project.members|length / 2 + 1 -%} + {{ _("Everyone excepted %(excluded)s", excluded=g.project.members|reject('in', bill.owers)|join(', ', 'name')) }} + {%- else -%} + {{ bill.owers|join(', ', 'name') }} + {%- endif %} {{ "%0.2f"|format(bill.amount) }} ({{ "%0.2f"|format(bill.pay_each()) }} {{ _("each") }}) {{ _('edit') }}