Skip to content
Snippets Groups Projects
Unverified Commit 12159498 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Use the "trans" tags instead of passing a string into the "trans" filter.

This way the code is closer to the resulting HTML, and we don't need to pass it through the "raw" filter afterwards to keep rendering the HTML.
parent a72578a0
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,12 @@
<div class="wrap">
{%- if not isProduction %}
<div class="message-box warning">{{ (
"You are now accessing a pre-production system. This authentication setup " ~
"is for testing and pre-production verification only. If someone sent you " ~
"a link that pointed you here, and you are not <i>a tester</i> you " ~
"probably got the wrong link, and should <b>not be here</b>."
) | trans | raw }}</div>
<div class="message-box warning">
{% trans %}You are now accessing a pre-production system. This authentication setup
{#- #} is for testing and pre-production verification only. If someone sent you
{#- #} a link that pointed you here, and you are not <i>a tester</i> you
{#- #} probably got the wrong link, and should <b>not be here</b>.{% endtrans %}
</div>
{% endif -%}
{%- block contentwrapper %}
{%- block content %}{% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment