templates/backend/base.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'messages' %}
  2. {% if app.user is not null %}
  3.     {% set flashMessages = app.session.flashBag.all() %}
  4. {% endif %}
  5. <!DOCTYPE html>
  6. <html lang="{{ app.request.locale|split('_')[0] }}">
  7.     <head>
  8.         <meta charset="UTF-8">
  9.         <title>{{ app_name }} - {% block title %}{% endblock %}</title>
  10.         <meta name="viewport" content="width=device-width, initial-scale=1">
  11.         <link rel="shortcut icon" href="{{ asset('build/backend/images/ffcb.ico', 'backend') }}" />
  12.         {{ encore_entry_link_tags('app', null, 'backend') }}
  13.         {% block stylesheets %}{% endblock %}
  14.         {{ encore_entry_script_tags('app', null, 'backend') }}
  15.         {% block javascripts %}{% endblock %}
  16.     </head>
  17.     {% if app.user is not null %}
  18.         <body
  19.                 {{ stimulus_controller({'flash-message': {}, 'sidebar': {}}) }}
  20.                 data-flash-message-messages-value="{{ flashMessages|length == 0 ? '{}' : flashMessages|json_encode }}"
  21.                 data-turbo="false"
  22.         >
  23.     {% else %}
  24.         <body data-turbo="false">
  25.     {% endif %}
  26.         <div class="wrapper">
  27.             {% include 'backend/partials/_aside.html.twig' %}
  28.             <div class="main">
  29.                 {% include 'backend/partials/_header.html.twig' %}
  30.                 <main class="content">
  31.                     <div class="container-fluid">
  32.                         <div class="d-none" id="alert-content"></div>
  33.                         {% block content %}{% endblock %}
  34.                     </div>
  35.                 </main>
  36.                 {% include 'backend/partials/_footer.html.twig' %}
  37.             </div>
  38.         </div>
  39.     </body>
  40. </html>