templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Welcome!{% endblock %}</title>
  6.         <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>">
  7.          <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  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.         {% block nav %}
  18.         <div class="sticky-top mb-5">
  19.             <nav class="navbar navbar-expand-lg navbar-dark bg-dark d-flex flex-row justify-content-between">
  20.                 <div class="container-fluid">
  21.                     <div>
  22.                         <a class="navbar-brand" href="{{path('home')}}">AlgoMOD</a>
  23.                         {% if company is defined %}
  24.                             <span class="navbar-brand">/</span>
  25.                             <a class="navbar-brand" href="{{path('company_index', {'company_url_name': company.urlName})}}">{{company.name}}</a>
  26.                             {% if activity is defined %}
  27.                                 <span class="navbar-brand">/</span>
  28.                                 <a class="navbar-brand" href="{{path('company_index', {'company_url_name': company.urlName})}}">{{activity.name}}</a>
  29.                                 {% if session is defined %}
  30.                                     <span class="navbar-brand">/</span>
  31.                                     <a class="navbar-brand" href="{{path('session_index', {'company_url_name': company.urlName, 'activity_url_name': activity.urlName, 'session_url_name': session.urlName})}}">{{session.name}}</a>
  32.                                 {% endif %}
  33.                             {% endif %}
  34.                         {% endif %}
  35.                     </div>
  36.                     <div class="d-inline-flex w-auto">
  37.                     {% if app.user %}
  38.                         <span class="navbar-brand">{{ app.user.firstName }}</span>
  39.                         <a href="{{ path('app_logout') }}" class="btn btn-warning me-3" style="min-width: 5em;">Logout</a>
  40.                     {% else %}
  41.                         <a href="{{ path('app_login') }}" class="btn btn-primary me-3" style="min-width: 5em;">Log In</a>
  42.                         <a href="{{ path('app_register') }}" class="btn btn-primary me-3" style="min-width: 5em;">Register</a>
  43.                     {% endif %}
  44.                     </div>
  45.                 </div>
  46.             </nav>
  47.         {% endblock %}
  48.         {% block alert %}
  49.             {% for flashMessage in app.session.flashbag.get('danger') %}
  50.                 <div class="alert alert-danger">
  51.                     {{ flashMessage }}
  52.                 </div>
  53.             {% endfor %}
  54.             {% for flashMessage in app.session.flashbag.get('success') %}
  55.                 <div class="alert alert-success">
  56.                     {{ flashMessage }}
  57.                 </div>
  58.             {% endfor %}
  59.             {% for flashMessage in app.session.flashbag.get('warning') %}
  60.                 <div class="alert alert-warning">
  61.                     {{ flashMessage }}
  62.                 </div>
  63.             {% endfor %}
  64.         {% endblock %}
  65.         </div>
  66.         {% block body %}
  67.         {% endblock %}
  68.     </body>
  69. </html>