templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html class="common">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <title>{% block title %}{% trans from 'main' %}Университет искусственного интеллекта{% endtrans %}{% endblock %}</title>
  7.     <meta name="description" content="Платформа Университет искусственного интеллекта">
  8.     <meta property="og:url" content="https://neural-university.ru">
  9.     <meta property="og:title" content="Университет искусственного интеллекта">
  10.     <meta property="og:description" content="Платформа Университет искусственного интеллекта">
  11.     <meta property="og:image" content="https://static.tildacdn.com/tild3362-6564-4664-b338-303436383764/_4.png">
  12.     <link rel="canonical" href="https://neural-university.ru">
  13.     <meta name="format-detection" content="telephone=no">
  14.     <link rel="shortcut icon" href="https://static.tildacdn.com/tild3361-6532-4731-a366-346131653230/favicon.ico" type="image/x-icon">
  15.     <link rel="apple-touch-icon" href="https://static.tildacdn.com/tild3063-6135-4662-b433-346239303634/Sign_black_transpare.png">
  16.     <link rel="apple-touch-icon" sizes="76x76" href="https://static.tildacdn.com/tild3063-6135-4662-b433-346239303634/Sign_black_transpare.png">
  17.     <link rel="apple-touch-icon" sizes="152x152" href="https://static.tildacdn.com/tild3063-6135-4662-b433-346239303634/Sign_black_transpare.png">
  18.     <link rel="apple-touch-startup-image" href="https://static.tildacdn.com/tild3063-6135-4662-b433-346239303634/Sign_black_transpare.png">
  19.     <meta name="msapplication-TileColor" content="#000000">
  20.     <meta name="msapplication-TileImage" content="https://static.tildacdn.com/tild3562-3862-4434-b031-623866326333/_270.png">
  21.     {% block stylesheets %}
  22.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.css">
  23.     <link href="{{ asset('build/css/fonts.css') }}" rel="stylesheet" />
  24.     <link href="{{ asset('build/css/style.css') }}" rel="stylesheet" />
  25.     <link href="{{ asset('css/scroll-top-button.css') }}" rel="stylesheet" />
  26. {#    <link rel="icon" type="image/png" href="{{ asset('build/img/logo.png') }}" />#}
  27.     <!-- Yandex.Metrika counter -->
  28.     <script type="text/javascript" >
  29.     (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
  30.     m[i].l=1*new Date();
  31.     for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
  32.     k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
  33.     (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
  34.     ym(97028338, "init", {
  35.             clickmap:true,
  36.             trackLinks:true,
  37.             accurateTrackBounce:true
  38.     });
  39.     </script>
  40.     <noscript><div><img src="https://mc.yandex.ru/watch/97028338" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
  41.     <!-- /Yandex.Metrika counter -->
  42.     {% endblock %}
  43. </head>
  44. <body class="common__body" data-locale="{{ app.request.getLocale() }}">
  45.     <div class="app">
  46.         {% for message in app.flashes('notice') %}
  47.         <div class="popup-notification"><a class="link-full" href="#" title=""></a><a class="popup-notification__close" href="#" title=""><i class="icon icon-close"></i></a>
  48.             <div class="popup-notification__content">
  49.                 <div class="popup-notification__title">{{ message }}</div>
  50.             </div>
  51.         </div>
  52.         {% endfor %}
  53.         {% for message in app.flashes('error') %}
  54.         <div class="popup-error"><a class="link-full" href="#" title=""></a><a class="popup-error__close" href="#" title=""><i class="icon icon-close"></i></a>
  55.             <div class="popup-error__content">
  56.                 <div class="popup-error__title">{{ message }}</div>
  57.             </div>
  58.         </div>
  59.         {% endfor %}
  60.         {% if app.user %}
  61.         <header class="header">
  62.             <div class="header__main">
  63.                 <div class="header__main-inner inner">
  64.                     <div class="header__logo">
  65.                         <a class="link-full" href="{{ path('app_index') }}" title=""></a>
  66.                         <img class="header__logo-img" src="{{ asset('build/img/logo.png') }}" title="" alt="">
  67.                         <div class="header__logo-text">
  68.                             <div class="header__logo-title">{% trans from 'main' %}Платформа{% endtrans %}</div>
  69.                             <div class="header__logo-subtitle">{% trans from 'main' %}Университет искусственного интеллекта{% endtrans %}</div>
  70.                         </div>
  71.                     </div>
  72.                     <div class="header__info">
  73.                         {% if is_granted('ROLE_CURATOR') or is_granted('ROLE_MODERATOR') %}
  74.                             {% set type = 'CURATOR' %}
  75.                             {% if is_granted('ROLE_MODERATOR') %}
  76.                                 {% set type = 'ORG' %}
  77.                             {% endif %}
  78.                             <form class="header__info-link" method="POST" name="duty" action="{{ path('app_duty_status') }}">
  79.                                 <button type="submit" class="text-link" title="Сейчас на дежурстве: {{ getOnDutyList(type) }}">{{ getDutyLabel(app.user) }}</button>
  80.                             </form>
  81.                         {% endif %}
  82.                         {% if app.request.getLocale() != 'en' %}
  83.                             {% set phrase = 'eng' %}
  84.                             {% set locale = 'en' %}
  85.                         {% else %}
  86.                             {% set phrase = 'рус' %}
  87.                             {% set locale = 'ru' %}
  88.                         {% endif %}
  89.                         {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  90.                             <div class="header__link">
  91.                                 <a class="text-link" href="{{ path('admin_app_user_list', {'_want_to_be_this_user': '_exit'}) }}">Exit Impersonate</a>
  92.                             </div>
  93.                         {% endif %}
  94.                         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_TRANSLATOR') %}
  95.                             <div class="header__link">
  96.                                 <a class="text-link" href="{{ path('app_locale_change', {'locale': locale}) }}">{{ phrase }}</a>
  97.                             </div>
  98.                         {% endif %}
  99.                         <a class="header__info-button" href="{{ path('app_notification_index') }}" title="">
  100.                             <i class="icon icon-bell"></i>
  101.                             {% if mgilet_notification_unseen_count(app.user) > 0 %}<span class="red-dot">{{mgilet_notification_unseen_count(app.user)}}</span>{% endif %}
  102.                         </a>
  103.                         <a class="header__info-button" href="{{ path('app_logout') }}" title="">
  104.                             <i class="icon icon-logout"></i>
  105.                         </a>
  106.                         <a class="header__avatar" href="{{ path('app_profile', {'id': app.user.id }) }}" title="">
  107.                             <img class="header__avatar-img" id="header-avatar-img" src="{{ asset(getUserFileStore('avatar_rounded')) }}" title="" alt="">
  108.                         </a>
  109.                         <a href="" class="header__menu-btn" data-toggle-btn="menu">
  110.                             <i class="icon icon-menu2"></i>
  111.                             <i class="icon icon-close"></i>
  112.                         </a>
  113.                     </div>
  114.                 </div>
  115.             </div>
  116.             <nav class="header__menu inner" data-toggle-item="menu">
  117.                 <a class="header__menu-item" href="{{ path('app_profile', {'id': app.user.id }) }}" title="">{% trans from 'main' %}Профиль{% endtrans %}</a>
  118.                 <a class="header__menu-item" href="{{ path('app_learning_program_show_learn_v2') }}" title="">{% trans from 'main' %}Курсы{% endtrans %}</a>
  119.                 <a class="header__menu-item" href="{{ path('app_consultations') }}" title="">{% trans from 'main' %}Консультации{% endtrans %}</a>
  120.                 <a class="header__menu-item {% if is_granted('ROLE_LIMITED_ACCESS') %}_locked{% endif %}" href="{{ path('app_learning_program_show_v2', { type: 'diploma' }) }}" title="">{% trans from 'main' %}Мой AI-проект{% endtrans %}</a>
  121. {#                {% if faq_page_url is not empty and not is_granted('ROLE_DEMO') and not is_granted('ROLE_LIMITED_ACCESS') %}#}
  122. {#                    <a class="header__menu-item" href="{{ path('app_static_page', {'url': faq_page_url}) }}" title="">{% trans from 'main' %}F.A.Q.{% endtrans %}</a>#}
  123. {#                {% endif %}#}
  124.                 {# if competition_page_url is not empty and not is_granted('ROLE_DEMO') and not is_granted('ROLE_LIMITED_ACCESS') %}
  125.                     <a class="header__menu-item" href="{{ path('app_static_page', {'url': competition_page_url}) }}" title="">{% trans from 'main' %}Конкурс{% endtrans %}</a>
  126.                 {% endif #}
  127.                 {#<a class="header__menu-item" href="#" title="">Расписание</a>#}
  128.                 <a class="header__menu-item {% if is_granted('ROLE_LIMITED_ACCESS') %}_locked{% endif %}" href="{{ path('app_rating_v2') }}" title="">{% trans from 'main' %}Рейтинг{% endtrans %}</a>
  129.                 {% if
  130.                     not is_granted('ROLE_LIMITED_ACCESS') or
  131.                     not is_granted('ROLE_DEMO') or
  132.                     not is_granted('ROLE_INTRO_STUDENT') or
  133.                     not is_granted('ROLE_DEMO_INTENSIVE') or
  134.                     is_granted('ROLE_ADMIN')
  135.                 %}
  136.                     <a class="header__menu-item {% if is_granted('ROLE_LIMITED_ACCESS') %}_locked{% endif %}" href="{{ path('app_internship')  }}" title="">Стажировки</a>
  137.                 {% endif %}
  138.                 <div class="header__menu-item _dropdown">
  139.                     <span>еще</span>
  140.                     <div class="header__submenu">
  141.                         <a class="header__submenu-item  {% if is_granted('ROLE_LIMITED_ACCESS') %}_locked{% endif %}" href="{{ path('app_learning_program_show_v2', { type: 'bonus' }) }}" title="">{% trans from 'main' %}Бонусные материалы{% endtrans %}</a>
  142.                         {% if (is_granted('show_fully_student', app.user) or is_granted('ROLE_ADMIN')) and not is_granted('ROLE_DEMO') and app.environment != 'prod' %}
  143.                             <a class="header__submenu-item" href="{{ path('app_knowledge_base') }}" title="">
  144.                                 {% trans from 'main' %}Библиотека{% endtrans %}
  145.                             </a>
  146.                         {% endif %}
  147.                         {# {% if
  148.                             not is_granted('ROLE_LIMITED_ACCESS') or
  149.                             not is_granted('ROLE_DEMO') or
  150.                             not is_granted('ROLE_INTRO_STUDENT') or
  151.                             not is_granted('ROLE_DEMO_INTENSIVE') or
  152.                             is_granted('ROLE_ADMIN')
  153.                         %}
  154.                             <a class="header__submenu-item {% if is_granted('ROLE_LIMITED_ACCESS') %}_locked{% endif %}" href="{{ path('app_blog') }}" title="">Новости</a>
  155.                         {% endif %} #}
  156.                         {% if app.environment != 'prod' %}
  157.                             <a class="header__submenu-item" href="{{ path('app_lessons_index') }}" title="">
  158.                                 {% trans from 'main' %}База занятий{% endtrans %}
  159.                             </a>
  160.                         {% endif %}
  161.                         {% if is_granted('ROLE_ADMIN') %}
  162.                             <a class="header__submenu-item" href="{{ path('sonata_admin_dashboard') }}" title="">В админку</a>
  163.                         {% endif %}
  164.                         {% if
  165.                             not is_granted('ROLE_STUDENT')
  166.                             and not is_granted('ROLE_VIP_VIDEO_STUDENT')
  167.                             and not is_granted('ROLE_VIP_STUDENT')
  168.                             and not is_granted('ROLE_LIMITED_ACCESS')
  169.                         %}
  170.                             <a class="header__submenu-item" href="{{ path('app_chat') }}" title="">{% trans from 'main' %}Чаты{% endtrans %}</a>
  171.                         {% endif %}
  172.                         {% if is_granted('ROLE_TRANSLATOR') %}
  173.                             <a class="header__submenu-item" href="{{ path('app_translator_index') }}" title="">Переводчик</a>
  174.                         {% endif %}
  175.                         {% if is_granted('resume_access') %}
  176.                             <a class="header__submenu-item" href="{{ path('app_neuro_hr_index') }}" title="">Анкета к резюме</a>
  177.                             {% if is_granted('create_resume') %}
  178.                                 <a class="header__submenu-item" href="{{ path('app_neuro_hr_builder', {'user': app.user.id}) }}" title="">Конструктор резюме</a>
  179.                             {% endif %}
  180.                         {% endif %}
  181.                         <a class="header__submenu-item" href="{{ path('app_consultations_curator_list') }}" title="">Кураторы</a>
  182.                     </div>
  183.                 </div>
  184.     {#            <div class="header__menu-item _dropdown"><span>еще</span>
  185.                     <div class="header__submenu"><a class="header__submenu-item" href="" title=""></a></div>
  186.                 </div>#}
  187.             </nav>
  188.         </header>
  189.         {% endif %}
  190.         <a id="button-scroll">
  191.         </a>
  192.         {% block body %}
  193.         empty body
  194.         {% endblock %}
  195.         {% block footer %}<footer class="footer"></footer>{% endblock %}
  196.     </div>
  197.     {# PNotify #}
  198.     {% if is_granted('ROLE_ADMIN') %}
  199.         {% include 'pnotify/styles.html.twig' %}
  200.         {% include 'pnotify/scripts.html.twig' %}
  201.     {% endif %}
  202.     {# /PNotify #}
  203.     {% block javascripts %}
  204.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  205.         <script src="{{ asset('bundles/fosjsrouting/js/router.min.js') }}"></script>
  206.         <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
  207.         <script src="{{ asset('build/js/script.js') }}"></script>
  208.         <script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>
  209.         <script src="https://www.youtube.com/iframe_api" async></script>
  210.     {% endblock %}
  211. </body>
  212. </html>