templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>
  6.             {% block title %}Welcome!
  7.             {% endblock %}
  8.         </title>
  9.         <link
  10.         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>">
  11.         <link href="{{ asset('build/app.css') }}" rel="stylesheet">
  12.         <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/choices.js/public/assets/styles/choices.min.css"/>
  13.         <script src="https://cdn.jsdelivr.net/npm/choices.js/public/assets/scripts/choices.min.js"></script>
  14.         {% block stylesheets %}
  15.             {{ encore_entry_link_tags('app') }}
  16.         {% endblock %}
  17.         {% block javascripts %}
  18.             {{ encore_entry_script_tags('app') }}
  19.         {% endblock %}
  20.     </head>
  21.     <body x-data="{ expanded: false }" class="flex min-h-screen">
  22.         {% set currentRoute = app.request.attributes.get('_route') %}
  23.         <main class="grow p-4 transition-all duration-300 overflow-x-hidden">
  24.             {% if currentRoute != 'app_login' %}
  25.                 <div class="flex justify-end">
  26.                     <a href="{{ path('app_logout') }}" class="text-red-500 w-full text-[14px] sm:w-auto ml-3 p-3 shadow-md sm:rounded-lg text-center hover:bg-red-500 hover:text-white">
  27.                         Cerrar sesión
  28.                     </a>
  29.                 </div>
  30.             {% endif %}
  31.             {% block body %}{% endblock %}
  32.         </main>
  33.     </body>
  34. </html></body></html>