*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document-list.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document-list.html.twig")); // line 1 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/main.html.twig"); yield " "; // line 5 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/title-meta.html.twig", (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })())); yield " "; // line 7 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/head-css.html.twig"); yield "
"; // line 16 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/menu.html.twig"); yield "
"; // line 26 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/page-title.html.twig", (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 26, $this->source); })())); yield " "; // line 28 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/validation.html.twig", (isset($context["validation"]) || array_key_exists("validation", $context) ? $context["validation"] : (function () { throw new RuntimeError('Variable "validation" does not exist.', 28, $this->source); })())); yield "
"; // line 42 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 42), "ROLE_SUPERADMIN", [], "any", true, true, false, 42) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 42, $this->source); })()), "title", [], "any", false, false, false, 42) == "Documents"))) { // line 43 yield " Add Document Category "; } // line 47 yield "
"; // line 58 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["documentsByCategory"]) || array_key_exists("documentsByCategory", $context) ? $context["documentsByCategory"] : (function () { throw new RuntimeError('Variable "documentsByCategory" does not exist.', 58, $this->source); })())) > 0)) { // line 59 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["documentsByCategory"]) || array_key_exists("documentsByCategory", $context) ? $context["documentsByCategory"] : (function () { throw new RuntimeError('Variable "documentsByCategory" does not exist.', 59, $this->source); })())); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["key"] => $context["documentCategory"]) { // line 60 yield " "; // line 61 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/document/document-category-list.html.twig"); yield " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['key'], $context['documentCategory'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 64 yield " "; } else { // line 65 yield "
No document categories defined
"; } // line 77 yield "
"; // line 88 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/footer.html.twig"); yield "
"; // line 94 if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 94), "ROLE_DEVELOPER", [], "any", true, true, false, 94)) { // line 95 yield " "; yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/customizer.html.twig"); yield " "; } // line 97 yield " "; // line 98 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/vendor-scripts.html.twig"); yield " "; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "document-list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 218 => 98, 215 => 97, 209 => 95, 207 => 94, 198 => 88, 185 => 77, 171 => 65, 168 => 64, 151 => 61, 148 => 60, 130 => 59, 128 => 58, 115 => 47, 109 => 43, 107 => 42, 90 => 28, 85 => 26, 72 => 16, 60 => 7, 55 => 5, 48 => 1,); } public function getSourceContext(): Source { return new Source("{{ include('partials/main.html.twig') }} {{ include('partials/title-meta.html.twig', page) }} {{ include('partials/head-css.html.twig') }}
{{ include('partials/menu.html.twig') }}
{{ include('partials/page-title.html.twig', page) }} {{ include('partials/validation.html.twig', validation) }}
{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} Add Document Category {% endif %}
{% if documentsByCategory|length > 0 %} {% for key, documentCategory in documentsByCategory %} {{ include('partials/document/document-category-list.html.twig') }} {% endfor %} {% else %}
No document categories defined
{% endif %}
{{ include('partials/footer.html.twig') }}
{% if user.roles.ROLE_DEVELOPER is defined %} {{ include('partials/customizer.html.twig') }} {% endif %} {{ include('partials/vendor-scripts.html.twig') }} ", "document-list.html.twig", "/var/www/cds-intranet/app/templates/document-list.html.twig"); } }