Procházet zdrojové kódy

Merge pull request #1862 from spolischook/patch-1

Allow html tag at flashbag, e.g. for links
Thomas před 11 roky
rodič
revize
7ccdae6795
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Resources/views/standard_layout.html.twig

+ 1 - 1
Resources/views/standard_layout.html.twig

@@ -185,7 +185,7 @@ file that was distributed with this source code.
                         {% set session_var = 'sonata_flash_' ~ notice_level %}
                         {% for flash in app.session.flashbag.get(session_var) %}
                             <div class="alert {{ 'alert-' ~ notice_level }}">
-                                {{ flash|trans([], 'SonataAdminBundle') }}
+                                {{ flash|trans([], 'SonataAdminBundle')|raw }}
                             </div>
                         {% endfor %}
                     {% endfor %}