aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/history.html
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/templates/history.html')
-rw-r--r--ihatemoney/templates/history.html32
1 files changed, 20 insertions, 12 deletions
diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html
index 875040e..6bd7e26 100644
--- a/ihatemoney/templates/history.html
+++ b/ihatemoney/templates/history.html
@@ -124,18 +124,25 @@
{% if current_log_pref == LoggingMode.DISABLED or (current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses) %}
<div id="history_warnings" class="card card-body bg-light">
{% if current_log_pref == LoggingMode.DISABLED %}
- <p>
- <i>{{ _("This project has history disabled. New actions won't appear below. You can enable history on the") }}</i>
- <a href="{{ url_for(".edit_project") }}">{{ _("settings page") }}</a>
+ <p>{% set url = url_for(".edit_project") %}
+ {% trans %}
+ <i>This project has history disabled. New actions won't appear below. You can enable history on the</i>
+ <a href="{{ url }}">settings page</a>
+ {% endtrans %}
</p>
{% if history %}
- <p><i>{{ _("The table below reflects actions recorded prior to disabling project history. You can ") }}
- <a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-erase">{{ _("clear project history") }}</a> {{ _("to remove them.") }}</i></p>
+ <p>
+ {% trans %}
+ <i>The table below reflects actions recorded prior to disabling project history. You can
+ <a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-erase">clear project history</a> to remove them.</i></p>
+ {% endtrans %}
{% endif %}
{% endif %}
{% if current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses %}
- <p><i>{{ _("Some entries below contain IP addresses, even though this project has IP recording disabled. ") }}
- <a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-ip-delete">{{ _("Delete stored IP addresses") }}</a></i></p>
+ <p>
+ <i>{{ _("Some entries below contain IP addresses, even though this project has IP recording disabled. ") }}
+ <a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-ip-delete">{{ _("Delete stored IP addresses") }}</a></i>
+ </p>
{% endif %}
</div>
{% endif %}
@@ -160,10 +167,11 @@
<th style="width: 15%">{{ _("Time") }}</th>
<th style="width: 65%">{{ _("Event") }}</th>
<th style="width: 20%">
- <span data-toggle="tooltip" title="{{_('IP address recording can be') }}
- {% if current_log_pref != LoggingMode.RECORD_IP %}
- {{ _("enabled") }}{% else %}{{ _("disabled") }}{% endif %}
- {{ _('on the Settings page') }}">
+ <span data-toggle="tooltip" title="{% if current_log_pref != LoggingMode.RECORD_IP %}
+ {{_('IP address recording can be enabled on the settings page') }}
+ {% else %}
+ {{_('IP address recording can be disabled on the settings page') }}
+ {% endif %}">
{{ _("From IP") }}</span></th>
</tr></thead>
<tbody>
@@ -201,7 +209,7 @@
{{ event.object_type }} <em class="font-italic">{{ event.object_desc }}</em>
{% if event.val_after == False %}{{ _("deactivated") }}{% else %}{{ _("reactivated") }}{% endif %}
{% elif event.prop_changed == "name" or event.prop_changed == "what" %}
- {{ describe_object(event) }} {{ _("renamed") }} {{ _("to") }} <em class="font-italic">{{ event.val_after }}</em>
+ {{ describe_object(event) }} {{ _("renamed to") }} <em class="font-italic">{{ event.val_after }}</em>
{% elif event.prop_changed == "weight" %}
{{ simple_property_change(event, _("Weight")) }}
{% elif event.prop_changed == "external_link" %}