From d55f53609177ca207597f97d0ab97daf7bad6191 Mon Sep 17 00:00:00 2001 From: Adrien CLERC Date: Wed, 29 Apr 2020 22:43:37 +0200 Subject: [PATCH] add history descriptions for currency and converted_amount They could be merged in one line, but others requests will modify i18n for history. --- ihatemoney/templates/history.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html index 1ac3284f..a9a9a4db 100644 --- a/ihatemoney/templates/history.html +++ b/ihatemoney/templates/history.html @@ -225,6 +225,10 @@ {{ simple_property_change(event, _("Amount")) }} {% elif event.prop_changed == "date" %} {{ simple_property_change(event, _("Date")) }} + {% elif event.prop_changed == "original_currency" %} + {{ simple_property_change(event, _("Currency")) }} + {% elif event.prop_changed == "converted_amount" %} + {{ simple_property_change(event, _("Amount in %(currency)s", currency=g.project.default_currency)) }} {% else %} {{ describe_object(event) }} {{ _("modified") }} {% endif %}