var/cache/dev/twig/75/75267b7edc6e1f52182fa49293e3aa52c5fb802515fe5b6d9c44f849ce9332ff.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* base.html.twig */
  15. class __TwigTemplate_5d1d862504afc95fb7721c32e058f109896050b164d7b71d5f820dab7b283e40 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.             'title' => [$this'block_title'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'breadcrumb' => [$this'block_breadcrumb'],
  28.             'body' => [$this'block_body'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  39.         // line 1
  40.         yield "<!DOCTYPE html>
  41. <html lang=\"de\">
  42.     <head>
  43.         <meta charset=\"utf-8\">
  44.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  45.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  46.         <meta name=\"description\" content=\"\">
  47.         <meta name=\"author\" content=\"\">
  48.         <title>Mathematik Tutorien Verwaltung | ";
  49.         // line 9
  50.         yield from $this->unwrap()->yieldBlock('title'$context$blocks);
  51.         yield "</title>
  52.         ";
  53.         // line 11
  54.         yield from $this->unwrap()->yieldBlock('stylesheets'$context$blocks);
  55.         // line 14
  56.         yield "    </head>
  57.     <body id=\"page-top\">
  58.     <!-- Navbar Top -->
  59.     <nav class=\"navbar navbar-expand navbar-dark bg-dark static-top\">
  60.         <a class=\"navbar-brand mr-1\" title=\"Mathematik Tutorien Verwaltung\" href=\"";
  61.         // line 20
  62.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  63.         yield "\">MTV</a>
  64.         ";
  65.         // line 22
  66.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_LECTURER"))) {
  67.             // line 23
  68.             yield "            <button class=\"btn btn-link btn-sm text-white order-1 order-sm-0\" id=\"sidebarToggle\" href=\"#\">
  69.                 <i class=\"fas fa-bars\" aria-hidden=\"true\"></i>
  70.             </button>
  71.         ";
  72.         }
  73.         // line 27
  74.         yield "
  75.         <!-- Navbar -->
  76.         <ul class=\"navbar-nav ml-auto\">
  77.             <li class=\"m-auto\">
  78.                 ";
  79.         // line 33
  80.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  81.             // line 34
  82.             yield "                    <a class=\"btn btn-danger btn-sm\" href=\"";
  83.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", ["_switch_user" => "_exit"]);
  84.             yield "\" role=\"button\">
  85.                         <i class=\"fas fa-user-secret\"></i> Imitation Beenden
  86.                         <span class=\"badge badge-light\">";
  87.             // line 36
  88.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'36$this->source); })()), "user", [], "any"falsefalsefalse36), "firstName", [], "any"falsefalsefalse36), "html"nulltrue);
  89.             yield " ";
  90.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'36$this->source); })()), "user", [], "any"falsefalsefalse36), "lastName", [], "any"falsefalsefalse36), "html"nulltrue);
  91.             yield " (";
  92.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'36$this->source); })()), "user", [], "any"falsefalsefalse36), "uid", [], "any"falsefalsefalse36), "html"nulltrue);
  93.             yield ")</span>
  94.                     </a>
  95.                 ";
  96.         }
  97.         // line 39
  98.         yield "            </li>
  99. \t    <li class=\"nav-item\">
  100.               <a class=\"nav-link\" href=\"";
  101.         // line 41
  102.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("impressum");
  103.         yield "\">Impressum</a>
  104.             </li>
  105.             <li class=\"nav-item dropdown no-arrow m-auto\">
  106.                 ";
  107.         // line 44
  108.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  109.             // line 45
  110.             yield "                    <a class=\"nav-link dropdown-toggle\" href=\"#\" id=\"userDropdown\" role=\"button\" data-toggle=\"dropdown\"
  111.                        aria-haspopup=\"true\" aria-expanded=\"false\">
  112.                         <i class=\"fas fa-user-circle fa-fw\"></i>
  113.                     </a>
  114.                     <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"userDropdown\">
  115. ";
  116.             // line 57
  117.             yield "                        <a class=\"dropdown-item\" href=\"";
  118.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  119.             yield "\">Logout</a>
  120.                     </div>
  121.                 ";
  122.         }
  123.         // line 60
  124.         yield "            </li>
  125.         </ul>
  126.     </nav>
  127.     <div id=\"wrapper\">
  128.         ";
  129.         // line 65
  130.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_LECTURER"))) {
  131.             // line 66
  132.             yield "            <!-- Sidebar Left -->
  133.             <ul class=\"sidebar navbar-nav\">
  134.                 <li class=\"nav-item ";
  135.             // line 68
  136.             yield (((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'68$this->source); })()), "request", [], "any"falsefalsefalse68), "get", ["_route"], "method"falsefalsefalse68), "home"))) ? ("active") : (""));
  137.             yield "\">
  138.                     <a class=\"nav-link\" href=\"";
  139.             // line 69
  140.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  141.             yield "\">
  142.                         <i class=\"fas fa-fw fa-tachometer-alt\"></i>
  143.                         <span>Dashboard</span>
  144.                     </a>
  145.                 </li>
  146.                 <li class=\"nav-item ";
  147.             // line 74
  148.             yield (((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'74$this->source); })()), "request", [], "any"falsefalsefalse74), "get", ["_route"], "method"falsefalsefalse74), "users_index"))) ? ("active") : (""));
  149.             yield "\">
  150.                     <a class=\"nav-link\" href=\"";
  151.             // line 75
  152.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("users_index");
  153.             yield "\">
  154.                         <i class=\"fas fa-fw fa-users\"></i>
  155.                         <span>Benutzer</span>
  156.                     </a>
  157.                 </li>
  158.                 <li class=\"nav-item ";
  159.             // line 80
  160.             yield (((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'80$this->source); })()), "request", [], "any"falsefalsefalse80), "get", ["_route"], "method"falsefalsefalse80), "courses_index"))) ? ("active") : (""));
  161.             yield "\">
  162.                     <a class=\"nav-link\" href=\"";
  163.             // line 81
  164.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("courses_index");
  165.             yield "\">
  166.                         <i class=\"fas fa-chalkboard\"></i>
  167.                         <span>Lehrveranstaltungen</span>
  168.                     </a>
  169.                 </li>
  170.             </ul>
  171.         ";
  172.         }
  173.         // line 88
  174.         yield "
  175.         <div id=\"content-wrapper\">
  176.             ";
  177.         // line 91
  178.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_LECTURER"))) {
  179.             // line 92
  180.             yield "                <div class=\"container-fluid\">
  181.             ";
  182.         } else {
  183.             // line 94
  184.             yield "                <div class=\"container\">
  185.             ";
  186.         }
  187.         // line 96
  188.         yield "
  189.                 <div class=\"row align-items-center\">
  190.                     <!-- Breadcrumbs-->
  191.                     ";
  192.         // line 99
  193.         if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_LECTURER")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_TUTOR"))) {
  194.             // line 100
  195.             yield "                        <div class=\"col-lg\">
  196.                             <ol class=\"breadcrumb\">
  197.                                 ";
  198.             // line 102
  199.             yield from $this->unwrap()->yieldBlock('breadcrumb'$context$blocks);
  200.             // line 104
  201.             yield "                            </ol>
  202.                         </div>
  203.                     ";
  204.         }
  205.         // line 107
  206.         yield "
  207.                     ";
  208.         // line 108
  209.         $context['_parent'] = $context;
  210.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'108$this->source); })()), "flashes", ["success"], "method"falsefalsefalse108));
  211.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  212.             // line 109
  213.             yield "                        <div class=\"col-lg-3 col-sm-6 mb-3 column-card\">
  214.                             <div class=\"card text-white bg-success o-hidden h-100\">
  215.                                 <div class=\"card-header\">
  216.                                     <div class=\"row align-items-center\">
  217.                                         <div class=\"col\">
  218.                                             <h5 class=\"card-title mb-0\">Erfolg</h5>
  219.                                         </div>
  220.                                         <div class=\"col\" data-effect=\"fadeOut\">
  221.                                             <button type=\"button\" class=\"btn btn-link float-right card-close-icon\">
  222.                                                 <i class=\"fas fa-fw fa-times\"></i>
  223.                                             </button>
  224.                                         </div>
  225.                                     </div>
  226.                                 </div>
  227.                                 <div class=\"card-body\">
  228.                                     <div class=\"card-body-icon\">
  229.                                         <i class=\"fas fa-fw fa-check\"></i>
  230.                                     </div>
  231.                                     <div class=\"mr-5\">";
  232.             // line 127
  233.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html"nulltrue);
  234.             yield "</div>
  235.                                 </div>
  236.                             </div>
  237.                         </div>
  238.                     ";
  239.         }
  240.         $_parent $context['_parent'];
  241.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  242.         $context array_intersect_key($context$_parent) + $_parent;
  243.         // line 132
  244.         yield "
  245.                     ";
  246.         // line 133
  247.         $context['_parent'] = $context;
  248.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'133$this->source); })()), "flashes", ["warning"], "method"falsefalsefalse133));
  249.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  250.             // line 134
  251.             yield "                        <div class=\"col-lg-3 col-sm-6 mb-3 column-card\">
  252.                             <div class=\"card text-white bg-danger o-hidden h-100\">
  253.                                 <div class=\"card-header\">
  254.                                     <div class=\"row align-items-center\">
  255.                                         <div class=\"col\">
  256.                                             <h5 class=\"card-title mb-0\">Fehler</h5>
  257.                                         </div>
  258.                                         <div class=\"col\" data-effect=\"fadeOut\">
  259.                                             <button type=\"button\" class=\"btn btn-link float-right card-close-icon\">
  260.                                                 <i class=\"fas fa-fw fa-times\"></i>
  261.                                             </button>
  262.                                         </div>
  263.                                     </div>
  264.                                 </div>
  265.                                 <div class=\"card-body\">
  266.                                     <div class=\"card-body-icon\">
  267.                                         <i class=\"fas fa-fw fa-times\"></i>
  268.                                     </div>
  269.                                     <div class=\"mr-5\">";
  270.             // line 152
  271.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html"nulltrue);
  272.             yield "</div>
  273.                                 </div>
  274.                             </div>
  275.                         </div>
  276.                     ";
  277.         }
  278.         $_parent $context['_parent'];
  279.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  280.         $context array_intersect_key($context$_parent) + $_parent;
  281.         // line 157
  282.         yield "                </div>
  283.                 ";
  284.         // line 158
  285.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  286.         // line 160
  287.         yield "            </div>
  288. ";
  289.         // line 172
  290.         yield "        </div>
  291.     </div>
  292.     ";
  293.         // line 175
  294.         yield from $this->unwrap()->yieldBlock('javascripts'$context$blocks);
  295.         // line 178
  296.         yield "
  297.     </body>
  298. </html>";
  299.         
  300.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  301.         
  302.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  303.         return; yield '';
  304.     }
  305.     // line 9
  306.     public function block_title($context, array $blocks = [])
  307.     {
  308.         $macros $this->macros;
  309.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  310.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  312.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  313.         
  314.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  315.         
  316.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  317.         return; yield '';
  318.     }
  319.     // line 11
  320.     public function block_stylesheets($context, array $blocks = [])
  321.     {
  322.         $macros $this->macros;
  323.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  324.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  325.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  326.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  327.         // line 12
  328.         yield "            ";
  329.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  330.         yield "
  331.         ";
  332.         
  333.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  334.         
  335.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  336.         return; yield '';
  337.     }
  338.     // line 102
  339.     public function block_breadcrumb($context, array $blocks = [])
  340.     {
  341.         $macros $this->macros;
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  343.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  346.         // line 103
  347.         yield "                                ";
  348.         
  349.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  350.         
  351.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  352.         return; yield '';
  353.     }
  354.     // line 158
  355.     public function block_body($context, array $blocks = [])
  356.     {
  357.         $macros $this->macros;
  358.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  359.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  361.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  362.         // line 159
  363.         yield "                ";
  364.         
  365.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  366.         
  367.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  368.         return; yield '';
  369.     }
  370.     // line 175
  371.     public function block_javascripts($context, array $blocks = [])
  372.     {
  373.         $macros $this->macros;
  374.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  375.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  376.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  377.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  378.         // line 176
  379.         yield "        ";
  380.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  381.         yield "
  382.     ";
  383.         
  384.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  385.         
  386.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  387.         return; yield '';
  388.     }
  389.     /**
  390.      * @codeCoverageIgnore
  391.      */
  392.     public function getTemplateName()
  393.     {
  394.         return "base.html.twig";
  395.     }
  396.     /**
  397.      * @codeCoverageIgnore
  398.      */
  399.     public function isTraitable()
  400.     {
  401.         return false;
  402.     }
  403.     /**
  404.      * @codeCoverageIgnore
  405.      */
  406.     public function getDebugInfo()
  407.     {
  408.         return array (  424 => 176,  414 => 175,  403 => 159,  393 => 158,  382 => 103,  372 => 102,  358 => 12,  348 => 11,  329 => 9,  315 => 178,  313 => 175,  308 => 172,  304 => 160,  302 => 158,  299 => 157,  288 => 152,  268 => 134,  264 => 133,  261 => 132,  250 => 127,  230 => 109,  226 => 108,  223 => 107,  218 => 104,  216 => 102,  212 => 100,  210 => 99,  205 => 96,  201 => 94,  197 => 92,  195 => 91,  190 => 88,  180 => 81,  176 => 80,  168 => 75,  164 => 74,  156 => 69,  152 => 68,  148 => 66,  146 => 65,  139 => 60,  132 => 57,  125 => 45,  123 => 44,  117 => 41,  113 => 39,  103 => 36,  97 => 34,  95 => 33,  87 => 27,  81 => 23,  79 => 22,  74 => 20,  66 => 14,  64 => 11,  59 => 9,  49 => 1,);
  409.     }
  410.     public function getSourceContext()
  411.     {
  412.         return new Source("<!DOCTYPE html>
  413. <html lang=\"de\">
  414.     <head>
  415.         <meta charset=\"utf-8\">
  416.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  417.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  418.         <meta name=\"description\" content=\"\">
  419.         <meta name=\"author\" content=\"\">
  420.         <title>Mathematik Tutorien Verwaltung | {% block title %}{% endblock %}</title>
  421.         {% block stylesheets %}
  422.             {{ encore_entry_link_tags('app') }}
  423.         {% endblock %}
  424.     </head>
  425.     <body id=\"page-top\">
  426.     <!-- Navbar Top -->
  427.     <nav class=\"navbar navbar-expand navbar-dark bg-dark static-top\">
  428.         <a class=\"navbar-brand mr-1\" title=\"Mathematik Tutorien Verwaltung\" href=\"{{ path('home') }}\">MTV</a>
  429.         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_LECTURER') %}
  430.             <button class=\"btn btn-link btn-sm text-white order-1 order-sm-0\" id=\"sidebarToggle\" href=\"#\">
  431.                 <i class=\"fas fa-bars\" aria-hidden=\"true\"></i>
  432.             </button>
  433.         {% endif %}
  434.         <!-- Navbar -->
  435.         <ul class=\"navbar-nav ml-auto\">
  436.             <li class=\"m-auto\">
  437.                 {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  438.                     <a class=\"btn btn-danger btn-sm\" href=\"{{ path('home', {'_switch_user': \"_exit\" }) }}\" role=\"button\">
  439.                         <i class=\"fas fa-user-secret\"></i> Imitation Beenden
  440.                         <span class=\"badge badge-light\">{{ app.user.firstName }} {{ app.user.lastName }} ({{ app.user.uid }})</span>
  441.                     </a>
  442.                 {% endif %}
  443.             </li>
  444. \t    <li class=\"nav-item\">
  445.               <a class=\"nav-link\" href=\"{{ path('impressum') }}\">Impressum</a>
  446.             </li>
  447.             <li class=\"nav-item dropdown no-arrow m-auto\">
  448.                 {% if is_granted('ROLE_USER') %}
  449.                     <a class=\"nav-link dropdown-toggle\" href=\"#\" id=\"userDropdown\" role=\"button\" data-toggle=\"dropdown\"
  450.                        aria-haspopup=\"true\" aria-expanded=\"false\">
  451.                         <i class=\"fas fa-user-circle fa-fw\"></i>
  452.                     </a>
  453.                     <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"userDropdown\">
  454. {# These options habe no function yet 
  455.                         <a class=\"dropdown-item\" href=\"#\">Settings</a>
  456.                         <a class=\"dropdown-item\" href=\"#\">Activity Log</a>
  457.                         <div class=\"dropdown-divider\"></div>
  458. #}{# Alter Logout Link
  459.                         <a class=\"dropdown-item\" href=\"#\" data-toggle=\"modal\" data-target=\"#logoutModal\">Logout</a>
  460. #}
  461.                         <a class=\"dropdown-item\" href=\"{{ path('app_logout')}}\">Logout</a>
  462.                     </div>
  463.                 {% endif %}
  464.             </li>
  465.         </ul>
  466.     </nav>
  467.     <div id=\"wrapper\">
  468.         {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_LECTURER') %}
  469.             <!-- Sidebar Left -->
  470.             <ul class=\"sidebar navbar-nav\">
  471.                 <li class=\"nav-item {{ app.request.get('_route') == 'home' ? 'active' }}\">
  472.                     <a class=\"nav-link\" href=\"{{ path('home') }}\">
  473.                         <i class=\"fas fa-fw fa-tachometer-alt\"></i>
  474.                         <span>Dashboard</span>
  475.                     </a>
  476.                 </li>
  477.                 <li class=\"nav-item {{ app.request.get('_route') == 'users_index' ? 'active' }}\">
  478.                     <a class=\"nav-link\" href=\"{{ path('users_index') }}\">
  479.                         <i class=\"fas fa-fw fa-users\"></i>
  480.                         <span>Benutzer</span>
  481.                     </a>
  482.                 </li>
  483.                 <li class=\"nav-item {{ app.request.get('_route') == 'courses_index' ? 'active' }}\">
  484.                     <a class=\"nav-link\" href=\"{{ path('courses_index') }}\">
  485.                         <i class=\"fas fa-chalkboard\"></i>
  486.                         <span>Lehrveranstaltungen</span>
  487.                     </a>
  488.                 </li>
  489.             </ul>
  490.         {% endif %}
  491.         <div id=\"content-wrapper\">
  492.             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_LECTURER') %}
  493.                 <div class=\"container-fluid\">
  494.             {% else %}
  495.                 <div class=\"container\">
  496.             {% endif %}
  497.                 <div class=\"row align-items-center\">
  498.                     <!-- Breadcrumbs-->
  499.                     {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_LECTURER') or is_granted('ROLE_TUTOR') %}
  500.                         <div class=\"col-lg\">
  501.                             <ol class=\"breadcrumb\">
  502.                                 {% block breadcrumb %}
  503.                                 {% endblock %}
  504.                             </ol>
  505.                         </div>
  506.                     {% endif %}
  507.                     {% for message in app.flashes('success') %}
  508.                         <div class=\"col-lg-3 col-sm-6 mb-3 column-card\">
  509.                             <div class=\"card text-white bg-success o-hidden h-100\">
  510.                                 <div class=\"card-header\">
  511.                                     <div class=\"row align-items-center\">
  512.                                         <div class=\"col\">
  513.                                             <h5 class=\"card-title mb-0\">Erfolg</h5>
  514.                                         </div>
  515.                                         <div class=\"col\" data-effect=\"fadeOut\">
  516.                                             <button type=\"button\" class=\"btn btn-link float-right card-close-icon\">
  517.                                                 <i class=\"fas fa-fw fa-times\"></i>
  518.                                             </button>
  519.                                         </div>
  520.                                     </div>
  521.                                 </div>
  522.                                 <div class=\"card-body\">
  523.                                     <div class=\"card-body-icon\">
  524.                                         <i class=\"fas fa-fw fa-check\"></i>
  525.                                     </div>
  526.                                     <div class=\"mr-5\">{{ message }}</div>
  527.                                 </div>
  528.                             </div>
  529.                         </div>
  530.                     {% endfor %}
  531.                     {% for message in app.flashes('warning') %}
  532.                         <div class=\"col-lg-3 col-sm-6 mb-3 column-card\">
  533.                             <div class=\"card text-white bg-danger o-hidden h-100\">
  534.                                 <div class=\"card-header\">
  535.                                     <div class=\"row align-items-center\">
  536.                                         <div class=\"col\">
  537.                                             <h5 class=\"card-title mb-0\">Fehler</h5>
  538.                                         </div>
  539.                                         <div class=\"col\" data-effect=\"fadeOut\">
  540.                                             <button type=\"button\" class=\"btn btn-link float-right card-close-icon\">
  541.                                                 <i class=\"fas fa-fw fa-times\"></i>
  542.                                             </button>
  543.                                         </div>
  544.                                     </div>
  545.                                 </div>
  546.                                 <div class=\"card-body\">
  547.                                     <div class=\"card-body-icon\">
  548.                                         <i class=\"fas fa-fw fa-times\"></i>
  549.                                     </div>
  550.                                     <div class=\"mr-5\">{{ message }}</div>
  551.                                 </div>
  552.                             </div>
  553.                         </div>
  554.                     {% endfor %}
  555.                 </div>
  556.                 {% block body %}
  557.                 {% endblock %}
  558.             </div>
  559. {#
  560.             <!-- Sticky Footer -->
  561.             <footer class=\"sticky-footer\">
  562.                 <div class=\"container my-auto\">
  563.                     <div class=\"copyright text-center my-auto\">
  564.                         <span>Impressum</span>
  565.                     </div>
  566.                 </div>
  567.             </footer>
  568. #}
  569.         </div>
  570.     </div>
  571.     {% block javascripts %}
  572.         {{ encore_entry_script_tags('app') }}
  573.     {% endblock %}
  574.     </body>
  575. </html>""base.html.twig""/mtvupgrade/mtv/symfony/templates/base.html.twig");
  576.     }
  577. }