*/ 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", "partials/document/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", "partials/document/document-list.html.twig")); // line 1 yield "

"; // line 5 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 5, $this->source); })()), "category_name", [], "any", false, false, false, 5), "html", null, true); yield "

"; // line 9 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 9), "ROLE_SUPERADMIN", [], "any", true, true, false, 9) && (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.', 9, $this->source); })()), "title", [], "any", false, false, false, 9) == "Documents"))) { // line 10 yield " "; } // line 31 yield "
"; // line 38 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 38), "ROLE_SUPERADMIN", [], "any", true, true, false, 38) && (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.', 38, $this->source); })()), "title", [], "any", false, false, false, 38) == "Documents"))) { // line 39 yield " "; } else { // line 45 yield " "; } // line 50 yield " "; // line 51 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["documents"]) || array_key_exists("documents", $context) ? $context["documents"] : (function () { throw new RuntimeError('Variable "documents" does not exist.', 51, $this->source); })())) > 0)) { // line 52 yield " "; // line 62 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 62), "ROLE_SUPERADMIN", [], "any", true, true, false, 62) && (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.', 62, $this->source); })()), "title", [], "any", false, false, false, 62) == "Documents"))) { // line 63 yield " "; } // line 65 yield " "; // line 68 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["documents"]) || array_key_exists("documents", $context) ? $context["documents"] : (function () { throw new RuntimeError('Variable "documents" does not exist.', 68, $this->source); })())); foreach ($context['_seq'] as $context["key"] => $context["document"]) { // line 69 yield " "; // line 83 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 83), "ROLE_SUPERADMIN", [], "any", true, true, false, 83) && (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.', 83, $this->source); })()), "title", [], "any", false, false, false, 83) == "Documents"))) { // line 84 yield " "; } // line 105 yield " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['key'], $context['document'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 107 yield " "; } else { // line 109 yield " "; } // line 118 yield "
Title Uploaded
"; // line 71 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "title", [], "any", false, false, false, 71), "html", null, true); yield " "; // line 74 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "upload_date", [], "any", false, false, false, 74), "d-m-Y"), "html", null, true); yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "filename", [], "any", false, false, false, 77), "html", null, true); yield "\">View env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["document"], "filename", [], "any", false, false, false, 80), "html", null, true); yield "\" target=\"_blank\">Download
No documents
"; // line 122 if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["documentCategory"]) || array_key_exists("documentCategory", $context) ? $context["documentCategory"] : (function () { throw new RuntimeError('Variable "documentCategory" does not exist.', 122, $this->source); })()), "documents", [], "any", false, false, false, 122)) > 0)) { // line 123 yield "
"; // line 125 yield $this->env->getRuntime('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationRuntime')->render($this->env, // line 127 (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 127, $this->source); })()), "/partials/ajax-knp-pagination.html.twig"); // line 130 yield "
"; } else { // line 160 yield "
"; } // line 165 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/document/document-list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 291 => 165, 284 => 160, 257 => 136, 249 => 130, 247 => 127, 246 => 125, 242 => 123, 240 => 122, 234 => 118, 223 => 109, 219 => 107, 212 => 105, 201 => 97, 193 => 92, 183 => 84, 181 => 83, 175 => 80, 169 => 77, 163 => 74, 157 => 71, 153 => 69, 149 => 68, 144 => 65, 140 => 63, 138 => 62, 126 => 52, 124 => 51, 121 => 50, 114 => 45, 106 => 39, 104 => 38, 95 => 31, 86 => 25, 78 => 20, 70 => 15, 63 => 10, 61 => 9, 54 => 5, 48 => 1,); } public function getSourceContext(): Source { return new Source("

{{ documentCategory.category_name }}

{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} {% endif %}
{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} {% else %} {% endif %} {% if documents|length > 0 %} {% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} {% endif %} {% for key, document in documents %} {% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Documents' %} {% endif %} {% endfor %} {% else %} {% endif %}
Title Uploaded
{{ document.title }} {{ document.upload_date|date('d-m-Y') }} View Download
No documents
{% if documentCategory.documents|length > 0 %}
{{ knp_pagination_render( pagination, '/partials/ajax-knp-pagination.html.twig' ) }}
{% else %}
{% endif %}
", "partials/document/document-list.html.twig", "/var/www/cds-intranet/app/templates/partials/document/document-list.html.twig"); } }