mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Avoid HTML markup in translation strings
This commit is contained in:
parent
7d26870975
commit
c0cb7defa1
3 changed files with 13 additions and 14 deletions
|
@ -103,18 +103,17 @@
|
|||
{% 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>{% 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>
|
||||
<i>{{ _("This project has history disabled. New actions won't appear below.") }}
|
||||
<a href="{{ url_for(".edit_project") }}">{{ _("You can enable history on the settings page.") }}</a>
|
||||
</i>
|
||||
</p>
|
||||
{% if history %}
|
||||
<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 %}
|
||||
<i>{{ _("The table below reflects actions recorded prior to disabling project history.") }}
|
||||
<a href="#" data-toggle="modal" data-keyboard="false" data-target="#confirm-erase">{{ _("You can clear the project history to remove them.") }}</a>
|
||||
</i>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if current_log_pref != LoggingMode.RECORD_IP and any_ip_addresses %}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<h3>{{ _('Scan QR code') }}</h3>
|
||||
<p><small>{% trans download_mobile=url_for(".mobile") %}On a mobile device, with <a href="{{ download_mobile }}">a compatible app installed</a>.{% endtrans %}</small></p>
|
||||
<p><small><a href="{{ url_for(".mobile") }}">{{ _("Use a mobile device with a compatible app.") }}</a></small></p>
|
||||
</td>
|
||||
<td>
|
||||
{{ qrcode | safe }}
|
||||
|
|
|
@ -55,7 +55,7 @@ class HistoryTestCase(IhatemoneyTestCase):
|
|||
def assert_empty_history_logging_disabled(self):
|
||||
resp = self.client.get("/demo/history")
|
||||
self.assertIn(
|
||||
"This project has history disabled. New actions won't appear below. ",
|
||||
"This project has history disabled. New actions won't appear below.",
|
||||
resp.data.decode("utf-8"),
|
||||
)
|
||||
self.assertIn("Nothing to list", resp.data.decode("utf-8"))
|
||||
|
@ -248,7 +248,7 @@ class HistoryTestCase(IhatemoneyTestCase):
|
|||
resp = self.client.get("/demo/history")
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
self.assertIn(
|
||||
"This project has history disabled. New actions won't appear below. ",
|
||||
"This project has history disabled. New actions won't appear below.",
|
||||
resp.data.decode("utf-8"),
|
||||
)
|
||||
self.assertIn(
|
||||
|
@ -287,7 +287,7 @@ class HistoryTestCase(IhatemoneyTestCase):
|
|||
resp = self.client.get("/demo/history")
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
self.assertNotIn(
|
||||
"This project has history disabled. New actions won't appear below. ",
|
||||
"This project has history disabled. New actions won't appear below.",
|
||||
resp.data.decode("utf-8"),
|
||||
)
|
||||
self.assertNotIn(
|
||||
|
@ -332,7 +332,7 @@ class HistoryTestCase(IhatemoneyTestCase):
|
|||
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
self.assertNotIn(
|
||||
"This project has history disabled. New actions won't appear below. ",
|
||||
"This project has history disabled. New actions won't appear below.",
|
||||
resp.data.decode("utf-8"),
|
||||
)
|
||||
self.assertNotIn(
|
||||
|
|
Loading…
Reference in a new issue