templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <title>{% block title %}Welcome!{% endblock %}</title>
  7.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.         {% block stylesheets %}
  10.             {{ encore_entry_link_tags('app') }}
  11.         {% endblock %}
  12.         {% block javascripts %}
  13.             {{ encore_entry_script_tags('app') }}
  14.         {% endblock %}
  15.     </head>
  16.     <body>
  17.         <div class="example-wrapper">
  18.             {% if app.session.flashbag.peekAll|length > 0 %}
  19.                 {% for type, messages in app.session.flashbag.all %}
  20.                     {% for message in messages %}
  21.                         {% if type == 'error' %}
  22.                             {% set type = 'danger' %}
  23.                         {% endif %}
  24.                         <div class="alert alert-{{ type ? type : '' }}" role="alert">
  25.                             {{ message|trans({}, domain|default('messages')) }}
  26.                         </div>
  27.                     {% endfor %}
  28.                 {% endfor %}
  29.             {% endif %}
  30.             {% block body %}{% endblock %}
  31.         </div>
  32.     </body>
  33.     <style>
  34.         .example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
  35.         .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
  36.     </style>
  37. </html>