templates/base.html.twig line 1

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <title>{% block title %}{{ short_site_title }}{% endblock %}</title>
  7.     {% block stylesheets %}
  8.         {{ encore_entry_link_tags('app') }}
  9.     {% endblock %}
  10.     {% block javascripts %}
  11.         {{ encore_entry_script_tags('app') }}
  12.     {% endblock %}
  13. </head>
  14. <body class="flex-column d-flex background">
  15. {% block bodycont %}
  16.     <nav class="navbar navbar-dark sticky-top bg-dark bg-gradient flex-md-nowrap shadow flex-grow-0">
  17.         <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="/">{{ site_title }}</a>
  18.         <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-toggle="collapse"
  19.                 data-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false"
  20.                 aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
  21. {#        <div id="searchResultContainerBox" class="w-100">#}
  22. {#            <input id="siteSearch" class="form-control form-control-dark" type="text" placeholder="Search"#}
  23. {#                   aria-label="Search">#}
  24. {#            <div id="searchResultBox"></div>#}
  25. {#        </div>#}
  26.         <ul class="navbar-nav px-3 flex-row">
  27.             {% if is_granted('IS_IMPERSONATOR') %}
  28.                 <li class="nav-item text-nowrap pe-3 me-3 border-end border-dark">
  29.                     <a class="nav-link" href="{{ impersonation_exit_path( path('profile_' ~ app.user() | get_path_entity_name ~ '_edit') ) }}"><strong>Signed in as {{ app.user().getUsername() }}</strong>, return to main account?</a>
  30.                 </li>
  31.             {% else %}
  32.                 <li class="nav-item text-nowrap pe-3 me-3 border-end border-dark">
  33.                     <a class="nav-link" href="{{ path('profile_' ~ app.user() | get_path_entity_name ~ '_edit') }}">Signed in as <strong>{{ app.user().getUsername() }}</strong></a>
  34.                 </li>
  35.             {% endif %}
  36.             <li class="nav-item text-nowrap pe-3"><a class="nav-link cursor-pointer" data-bs-toggle="offcanvas" data-bs-target="#offcanvasHelp" aria-controls="offcanvasHelp">Help</a></li>
  37.             {% if is_granted('IS_AUTHENTICATED_FULLY') or is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  38.                 <li class="nav-item text-nowrap"><a class="nav-link" href="{{ path('authentication_' ~ app.user() | get_path_entity_name ~ '_leave') }}">Sign out</a></li>
  39.             {% endif %}
  40.         </ul>
  41.     </nav>
  42.     <div class="container-fluid flex-grow-1 bg-gradient bg-light">
  43.         <div class="row h-100">
  44.             <nav id="sidebarMenu" class="col-md-4 col-lg-2 d-md-block bg-light bg-gradient sidebar collapse px-0 border-end">
  45.                 <div class="overflow-scroll-y position-relative h-100">
  46.                     <div class="sidebar-sticky position-absolute w-100 h-100 bg-light-blue">
  47.                         {% include 'side-nav.html.twig' %}
  48.                     </div>
  49.                 </div>
  50.             </nav>
  51.             <main role="main" class="col-md-8 ms-sm-auto col-lg-10 px-md-3">
  52.                 {% apply spaceless %}
  53.                     <div class="floating-cont d-flex flex-column h-100">
  54.                         {% for type, flash_messages in app.session.flashBag.all %}
  55.                             {% for flash_message in flash_messages %}
  56.                                 <div class="alert alert-{{ type }} alert-dismissible fade show mt-3 mb-0" role="alert">
  57.                                     {{ flash_message }}
  58.                                     <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  59.                                 </div>
  60.                             {% endfor %}
  61.                         {% endfor %}
  62.                         {% block body %}{% endblock %}
  63.                     </div>
  64.                     <footer>
  65.                         {% block footer %}{% endblock %}
  66.                     </footer>
  67.                 {% endapply %}
  68.             </main>
  69.         </div>
  70.     </div>
  71. {% endblock %}
  72. {% include 'help.html.twig' %}
  73. <!-- Ybug code start (https://ybug.io) -->
  74. <script type='text/javascript'>
  75.     (function() {
  76.         window.ybug_settings = {"id":"7wb5w87sgqzwwdqzmxj0"};
  77.         var ybug = document.createElement('script'); ybug.type = 'text/javascript'; ybug.async = true;
  78.         ybug.src = 'https://widget.ybug.io/button/'+window.ybug_settings.id+'.js';
  79.         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ybug, s);
  80.     })();
  81. </script>
  82. <!-- Ybug code end -->
  83. </body>
  84. </html>