var/cache/dev/twig/72/728bed01bbfa1e7a12c0959823f91f50.php line 68

  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_83edfd2a11c614ca23eca12a45b37497 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.             'javascripts' => [$this'block_javascripts'],
  28.             'body' => [$this'block_body'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  38.         // line 1
  39.         yield "<!DOCTYPE html>
  40. <html lang=\"en\">
  41. <head>
  42.     <meta charset=\"UTF-8\">
  43.     <title>";
  44.         // line 5
  45.         yield from $this->unwrap()->yieldBlock('title'$context$blocks);
  46.         yield "</title>
  47.     ";
  48.         // line 6
  49.         yield from $this->unwrap()->yieldBlock('stylesheets'$context$blocks);
  50.         // line 14
  51.         yield "    ";
  52.         yield from $this->unwrap()->yieldBlock('javascripts'$context$blocks);
  53.         // line 21
  54.         yield "</head>
  55. <body>
  56. <nav class=\"navbar navbar-expand-lg navbar-light bg-light px-1\"
  57.         ";
  58.         // line 24
  59.         yield (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) ? ("style=\"background-color: red !important\"") : (""));
  60.         yield "
  61. >
  62.     <div class=\"container-fluid\">
  63.         <a class=\"navbar-brand\" href=\"";
  64.         // line 27
  65.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage");
  66.         yield "\">
  67.             <p class=\"pl-2 d-inline font-weight-bold\" style=\"color: #444;\">
  68.                 Cauldron Overflow
  69.             </p>
  70.         </a>
  71.         <button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbar-collapsable\" aria-controls=\"navbarTogglerDemo01\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  72.             <span class=\"navbar-toggler-icon\"></span>
  73.         </button>
  74.         <div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
  75.             <ul class=\"navbar-nav me-auto mb-2 mb-lg-0\">
  76.                 ";
  77.         // line 39
  78.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  79.             // line 40
  80.             yield "                    <li class=\"navbar-nav me-auto mb-2 mb-lg-0\">
  81.                         <a class=\"nav-link\" href=\"";
  82.             // line 41
  83.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
  84.             yield "\">Admin</a>
  85.                     </li>
  86.                 ";
  87.         }
  88.         // line 44
  89.         yield "            </ul>
  90.             ";
  91.         // line 46
  92.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  93.             // line 47
  94.             yield "                <div class=\"dropdown\">
  95.                     <button
  96.                             class=\"dropdown-toggle btn\"
  97.                             type=\"button\"
  98.                             id=\"user-dropdown\"
  99.                             data-bs-toggle=\"dropdown\"
  100.                             aria-expanded=\"false\"
  101.                     >
  102.                         <img
  103.                                 src=\"";
  104.             // line 56
  105.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::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.'56$this->source); })()), "user", [], "any"falsefalsefalse56), "avatarUrl", [], "any"falsefalsefalse56), "html"nulltrue);
  106.             yield "\"
  107.                                 alt=\"";
  108.             // line 57
  109.             yield Twig\Extension\EscaperExtension::escape($this->envCoreExtension::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.'57$this->source); })()), "user", [], "any"falsefalsefalse57), "fullName", [], "any"falsefalsefalse57), "html"nulltrue);
  110.             yield " Avatar\"
  111.                                 width=\"26px\">
  112.                     </button>
  113.                     <ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"user-dropdown\">
  114.                         ";
  115.             // line 61
  116.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  117.                 // line 62
  118.                 yield "                            <li>
  119.                                 <a class=\"dropdown-item\" href=\"";
  120.                 // line 63
  121.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["_switch_user" => "_exit"]);
  122.                 // line 65
  123.                 yield "\">Exit Impersonation</a>
  124.                             </li>
  125.                         ";
  126.             }
  127.             // line 68
  128.             yield "                        <li>
  129.                             <a class=\"dropdown-item\" href=\"";
  130.             // line 69
  131.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_profile_show");
  132.             yield "\">Profile</a>
  133.                         </li>
  134.                         <li>
  135.                             <a class=\"dropdown-item\" href=\"";
  136.             // line 72
  137.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  138.             yield "\">Log Out</a>
  139.                         </li>
  140.                     </ul>
  141.                 </div>
  142.             ";
  143.         } else {
  144.             // line 77
  145.             yield "                <a class=\"nav-link text-black-50\" href=\"";
  146.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  147.             yield "\">Log In</a>
  148.             ";
  149.         }
  150.         // line 79
  151.         yield "        </div>
  152.     </div>
  153. </nav>
  154. ";
  155.         // line 83
  156.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  157.         // line 85
  158.         yield "
  159. <footer class=\"mt-5 p-3 text-center\">
  160.     Made with <i style=\"color: red;\" class=\"fa fa-heart\"></i>
  161. </footer>
  162. </body>
  163. </html>
  164. ";
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         return; yield '';
  170.     }
  171.     // line 5
  172.     public function block_title($context, array $blocks = [])
  173.     {
  174.         $macros $this->macros;
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  179.         yield "Welcome!";
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.         return; yield '';
  185.     }
  186.     // line 6
  187.     public function block_stylesheets($context, array $blocks = [])
  188.     {
  189.         $macros $this->macros;
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  194.         // line 7
  195.         yield "        <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Spartan&display=swap\">
  196.         <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css\" integrity=\"sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=\" crossorigin=\"anonymous\"/>
  197.         ";
  198.         // line 9
  199.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  200.         yield "
  201.         <link rel=\"stylesheet\" href=\"";
  202.         // line 10
  203.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/app.css"), "html"nulltrue);
  204.         yield "\">
  205.         <link rel=\"stylesheet\" href=\"";
  206.         // line 11
  207.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/monaco.css"), "html"nulltrue);
  208.         yield "\">
  209.     ";
  210.         
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  212.         
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  214.         return; yield '';
  215.     }
  216.     // line 14
  217.     public function block_javascripts($context, array $blocks = [])
  218.     {
  219.         $macros $this->macros;
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  221.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  223.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  224.         // line 15
  225.         yield "        ";
  226.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  227.         yield "
  228.         ";
  229.         // line 16
  230.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("chart");
  231.         yield "
  232.         <script src=\"";
  233.         // line 17
  234.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/app.js"), "html"nulltrue);
  235.         yield "\"></script>
  236.         <script src=\"";
  237.         // line 18
  238.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/monaco.js"), "html"nulltrue);
  239.         yield "\"></script>
  240.     ";
  241.         
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  243.         
  244.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  245.         return; yield '';
  246.     }
  247.     // line 83
  248.     public function block_body($context, array $blocks = [])
  249.     {
  250.         $macros $this->macros;
  251.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  252.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  254.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  255.         
  256.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  257.         
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  259.         return; yield '';
  260.     }
  261.     /**
  262.      * @codeCoverageIgnore
  263.      */
  264.     public function getTemplateName()
  265.     {
  266.         return "base.html.twig";
  267.     }
  268.     /**
  269.      * @codeCoverageIgnore
  270.      */
  271.     public function isTraitable()
  272.     {
  273.         return false;
  274.     }
  275.     /**
  276.      * @codeCoverageIgnore
  277.      */
  278.     public function getDebugInfo()
  279.     {
  280.         return array (  281 => 83,  267 => 18,  263 => 17,  259 => 16,  254 => 15,  244 => 14,  230 => 11,  226 => 10,  222 => 9,  218 => 7,  208 => 6,  188 => 5,  171 => 85,  169 => 83,  163 => 79,  157 => 77,  149 => 72,  143 => 69,  140 => 68,  135 => 65,  133 => 63,  130 => 62,  128 => 61,  121 => 57,  117 => 56,  106 => 47,  104 => 46,  100 => 44,  94 => 41,  91 => 40,  89 => 39,  74 => 27,  68 => 24,  63 => 21,  60 => 14,  58 => 6,  54 => 5,  48 => 1,);
  281.     }
  282.     public function getSourceContext()
  283.     {
  284.         return new Source("<!DOCTYPE html>
  285. <html lang=\"en\">
  286. <head>
  287.     <meta charset=\"UTF-8\">
  288.     <title>{% block title %}Welcome!{% endblock %}</title>
  289.     {% block stylesheets %}
  290.         <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Spartan&display=swap\">
  291.         <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css\" integrity=\"sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=\" crossorigin=\"anonymous\"/>
  292.         {{ encore_entry_link_tags('app') }}
  293.         <link rel=\"stylesheet\" href=\"{{ asset('build/app.css') }}\">
  294.         <link rel=\"stylesheet\" href=\"{{ asset('build/monaco.css') }}\">
  295.     {% endblock %}
  296.     {% block javascripts %}
  297.         {{ encore_entry_script_tags('app') }}
  298.         {{ encore_entry_script_tags('chart') }}
  299.         <script src=\"{{ asset('build/app.js') }}\"></script>
  300.         <script src=\"{{ asset('build/monaco.js') }}\"></script>
  301.     {% endblock %}
  302. </head>
  303. <body>
  304. <nav class=\"navbar navbar-expand-lg navbar-light bg-light px-1\"
  305.         {{ is_granted('ROLE_PREVIOUS_ADMIN') ? 'style=\"background-color: red !important\"' }}
  306. >
  307.     <div class=\"container-fluid\">
  308.         <a class=\"navbar-brand\" href=\"{{ path('app_homepage') }}\">
  309.             <p class=\"pl-2 d-inline font-weight-bold\" style=\"color: #444;\">
  310.                 Cauldron Overflow
  311.             </p>
  312.         </a>
  313.         <button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbar-collapsable\" aria-controls=\"navbarTogglerDemo01\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
  314.             <span class=\"navbar-toggler-icon\"></span>
  315.         </button>
  316.         <div class=\"collapse navbar-collapse\" id=\"navbar-collapsable\">
  317.             <ul class=\"navbar-nav me-auto mb-2 mb-lg-0\">
  318.                 {% if is_granted('ROLE_ADMIN') %}
  319.                     <li class=\"navbar-nav me-auto mb-2 mb-lg-0\">
  320.                         <a class=\"nav-link\" href=\"{{ path('admin') }}\">Admin</a>
  321.                     </li>
  322.                 {% endif %}
  323.             </ul>
  324.             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  325.                 <div class=\"dropdown\">
  326.                     <button
  327.                             class=\"dropdown-toggle btn\"
  328.                             type=\"button\"
  329.                             id=\"user-dropdown\"
  330.                             data-bs-toggle=\"dropdown\"
  331.                             aria-expanded=\"false\"
  332.                     >
  333.                         <img
  334.                                 src=\"{{ app.user.avatarUrl }}\"
  335.                                 alt=\"{{ app.user.fullName }} Avatar\"
  336.                                 width=\"26px\">
  337.                     </button>
  338.                     <ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"user-dropdown\">
  339.                         {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  340.                             <li>
  341.                                 <a class=\"dropdown-item\" href=\"{{ path('app_homepage', {
  342.                                     '_switch_user': '_exit'
  343.                                 }) }}\">Exit Impersonation</a>
  344.                             </li>
  345.                         {% endif %}
  346.                         <li>
  347.                             <a class=\"dropdown-item\" href=\"{{ path('app_profile_show') }}\">Profile</a>
  348.                         </li>
  349.                         <li>
  350.                             <a class=\"dropdown-item\" href=\"{{ path('app_logout') }}\">Log Out</a>
  351.                         </li>
  352.                     </ul>
  353.                 </div>
  354.             {% else %}
  355.                 <a class=\"nav-link text-black-50\" href=\"{{ path('app_login') }}\">Log In</a>
  356.             {% endif %}
  357.         </div>
  358.     </div>
  359. </nav>
  360. {% block body %}
  361. {% endblock %}
  362. <footer class=\"mt-5 p-3 text-center\">
  363.     Made with <i style=\"color: red;\" class=\"fa fa-heart\"></i>
  364. </footer>
  365. </body>
  366. </html>
  367. ""base.html.twig""/var/www/admin-apag/templates/base.html.twig");
  368.     }
  369. }