templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <link rel="manifest" href="{{ asset('manifest.json') }}">
  7.     <meta name="mobile-web-app-capable" content="yes">
  8.     <meta name="apple-mobile-web-app-capable" content="yes">
  9.     <meta name="application-name" content="Part-DB">
  10.     <meta name="apple-mobile-web-app-title" content="Part-DB">
  11.     <meta name="msapplication-config" content="{{ asset('icons/browserconfig.xml') }}">
  12.     <meta name="theme-color" content="#ffffff">
  13.     <meta name="theme-color" content="#ffffff">
  14.     <meta name="msapplication-navbutton-color" content="#ffffff">
  15.     <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  16.     <meta name="msapplication-starturl" content="/en/">
  17.     <link rel="shortcut icon" type="image/x-icon" href="{{ asset('icons/favicon.ico') }}">
  18.     <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('icons/apple-touch-icon.png') }}">
  19.     <link rel="icon" type="image/png" href="{{ asset('icons/favicon-32x32.png') }}" sizes="32x32">
  20.     <link rel="icon" type="image/png" href="{{  asset('icons/favicon-16x16.png') }}" sizes="16x16">
  21.     <link rel="mask-icon" href="{{ asset('icons/safari-pinned-tab.svg') }}" color="#5bbad5">
  22.     <title>{% apply trim %}{% block title %}{{ partdb_title}}{% endblock %}{% endapply %}</title>
  23.     {% block stylesheets %}
  24.         {# Include the main bootstrap theme based on user/global setting #}
  25.         {% if not app.user.theme is defined %}
  26.             {% set theme = global_theme %}
  27.         {% else %}
  28.             {% set theme = app.user.theme %}
  29.         {% endif %}
  30.         {% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') %}
  31.             <link rel="stylesheet" href="{{ preload(asset('build/themes/' ~ theme ~ '.css'), {as: 'style'}) }}">
  32.         {% else %}
  33.             <link rel="stylesheet" href="{{ preload(asset('build/themes/bootstrap.css'), {as: 'style'}) }}">
  34.         {% endif %}
  35.         {{ encore_entry_link_tags('app') }}
  36.     {% endblock %}
  37. </head>
  38. <body data-base-url="{{ url('homepage', {'_locale': app.request.locale}) }}">
  39. {% block body %}
  40.     <header>
  41.         {% include "_navbar.html.twig" %}
  42.         {% include "_flash.html.twig" %}
  43.     </header>
  44.     <main>
  45.         <div class="container-fluid">
  46.             <div class="row">
  47.                 <div class="collapse d-md-block bg-light" id="sidebar-container">
  48.                     <nav  class="fixed-sidebar col-md-3 col-lg-2 " id="fixed-sidebar">
  49.                         {% include "_sidebar.html.twig" %}
  50.                         <noscript><b>{% trans %}vendor.base.javascript_hint{% endtrans %}</b></noscript>
  51.                     </nav>
  52.                 </div>
  53.                 <div class="col-md-9 col-lg-10 offset-md-3 offset-lg-2 pl-0" id="main">
  54.                     <button class="btn btn-outline-dark btn-sm p-0" type="button" id="sidebar-toggle-button" title="{% trans %}sidebar.big.toggle{% endtrans %}">
  55.                         <i class="fas fa-angle-left"></i>
  56.                     </button>
  57.                     <div class="container-fluid mr-0 pr-0" id="content">
  58.                         <div id="content-data">
  59.                             {# Here will be the real content be injected#}
  60.                             {% block content %}
  61.                             {% endblock %}
  62.                         </div>
  63.                         {% block scripts %}
  64.                         {% endblock %}
  65.                     </div>
  66.                 </div>
  67.             </div>
  68.         </div>
  69.     </main>
  70.     {# Modal for loading bar #}
  71.     <div class="modal border-primary" id="progressModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  72.         <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  73.             <div class="modal-content shadow-lg">
  74.                 <div class="modal-header">
  75.                     <h5 class="modal-title" id="exampleModalLabel">{% trans %}loading.caption{% endtrans %}
  76.                         <small class="text-muted">{% trans %}loading.message{% endtrans %}</small></h5>
  77.                 </div>
  78.                 <div class="modal-body">
  79.                     <div class="progress-bar progress-bar-striped active progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0"
  80.                          aria-valuemax="100" style="width: 100%;">
  81.                         <span>{% trans %}loading.bar{% endtrans %}</span>
  82.                     </div>
  83.                 </div>
  84.             </div>
  85.         </div>
  86.     </div>
  87.     {# Back to top buton #}
  88.     <!-- Back to top button -->
  89.     <a id="back-to-top" href="#" class="btn btn-primary back-to-top" data-no-ajax role="button"
  90.        title="{% trans %}back_to_top{% endtrans %}" data-toggle="tooltip" data-placement="left">
  91.         <i class="fas fa-angle-up fa-fw"></i>
  92.     </a>
  93. {% endblock %}
  94. {% block javascripts %}
  95.     {{ encore_entry_script_tags('app') }}
  96.     {{ encore_entry_script_tags('ru2ftwofactor') }}
  97. {% endblock %}
  98. </body>
  99. </html>