From 12159498e818c13ba16f5f95c8ae0786afbdd37d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Thu, 29 Nov 2018 13:51:47 +0100
Subject: [PATCH] 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.
---
 templates/base.twig | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/templates/base.twig b/templates/base.twig
index 851f2f543..29228797c 100644
--- a/templates/base.twig
+++ b/templates/base.twig
@@ -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 %}
-- 
GitLab