templates/base.html.twig line 1

Open in your IDE?
  1. {# templates/base.html.twig #}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="UTF-8" />
  6. <title>{% block title %}Дисциплина СКУД{% endblock %}</title>
  7. {% block stylesheets %}
  8. {# 'app' must match the first argument to addEntry() in webpack.config.js #}
  9. {{ encore_entry_link_tags('app') }}
  10. <!-- Renders a link tag (if your module requires any CSS)
  11. <link rel="stylesheet" href="/build/app.css"> -->
  12. {% endblock %}
  13. {% block javascripts %}
  14. {{ encore_entry_script_tags('app') }}
  15. <!-- Renders app.js & a webpack runtime.js file
  16. <script src="/build/runtime.js" defer></script>
  17. <script src="/build/app.js" defer></script>
  18. See note below about the "defer" attribute -->
  19. {% endblock %}
  20. </head>
  21. <body>
  22. <nav
  23. class="navbar navbar-expand-lg navbar-light bg-light"
  24. style="height: 70px;"
  25. >
  26. <a class="navbar-brand" href="#">Дисциплина СКУД</a>
  27. <div class="collapse navbar-collapse" id="navbarSupportedContent"></div>
  28. <ul class="nav navbar-nav navbar-right">
  29. <li><a class="nav-link" href="{{ path('list') }}">Отчет</a></li>
  30. <li><a class="nav-link" href="{{ path('app_upload_skud') }}">Импорт СКУД</a></li>
  31. {% if app.user != null %}
  32. <li><a class="nav-link" href="{{ path('app_logout') }}">Выйти</a></li>
  33. {% else %}
  34. <li><a class="nav-link" href="{{ path('app_login') }}">Войти</a></li>
  35. <li><a class="nav-link" href="{{ path('registration') }}">Регистрация</a></li>
  36. {% endif %}
  37. </ul>
  38. </nav>
  39. {% block body %}{% endblock %}
  40. </body>
  41. </html>