templates/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %} Панель администратора {% endblock %}
  3. {% block body %}
  4.     {% if app.user %}
  5.         {%
  6.             set user = {
  7.                 id: app.user.id,
  8.                 email: app.user.email,
  9.                 role: app.user.getRoles()
  10.             }
  11.         %}
  12.         {% set contentData = NULL %}
  13.         {% set notice = NULL %}
  14.         {% if content is defined %}
  15.             {% set contentData = content %}
  16.         {% endif %}
  17.         {% for message in app.flashes('notice') %}
  18.             {% set notice = message %}
  19.         {% endfor %}
  20.         <div id="app">
  21.             <k-application
  22.                 :auth="{{ user|json_encode }}"
  23.                 :notice="{{ notice|json_encode }}"
  24.                 :content="{{ contentData|json_encode }}"
  25.             />
  26.         </div>
  27.     {% endif %}
  28. {% endblock %}