*/ 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", "user-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", "user-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"); yield "
"; // line 67 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 67), "ROLE_SUPERADMIN", [], "any", true, true, false, 67) && (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.', 67, $this->source); })()), "title", [], "any", false, false, false, 67) == "Users"))) { // line 68 yield " Add User "; } // line 72 yield "
"; // line 84 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable((isset($context["userlist"]) || array_key_exists("userlist", $context) ? $context["userlist"] : (function () { throw new RuntimeError('Variable "userlist" does not exist.', 84, $this->source); })())); foreach ($context['_seq'] as $context["key"] => $context["___user"]) { // line 85 yield "
\"\"
"; // line 101 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "account_disabled", [], "any", false, false, false, 101)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 102 yield " Disabled "; } // line 104 yield "
"; // line 108 if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 108), "ROLE_SUPERADMIN", [], "any", true, true, false, 108) && (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.', 108, $this->source); })()), "title", [], "any", false, false, false, 108) == "Users"))) { // line 109 yield " "; } // line 130 yield "
"; // line 138 if ((CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "avatar", [], "any", false, false, false, 138) != "")) { // line 139 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "avatar", [], "any", false, false, false, 139), "html", null, true); yield "\" alt=\"\" class=\"member-img img-fluid d-block rounded-circle\" /> "; } else { // line 141 yield "
"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "first_name", [], "any", false, false, false, 141), 0, 1), "html", null, true); yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "second_name", [], "any", false, false, false, 141), 0, 1), "html", null, true); yield "
"; } // line 143 yield "
"; // line 173 if ((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.', 173, $this->source); })()), "title", [], "any", false, false, false, 173) == "Users")) { // line 174 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "id", [], "any", false, false, false, 174), "html", null, true); yield "\" class=\"btn btn-light view-btn\">View Profile "; } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 175 (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 175, $this->source); })()), "title", [], "any", false, false, false, 175) == "Directory")) { // line 176 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "id", [], "any", false, false, false, 176), "html", null, true); yield "\" class=\"btn btn-light view-btn\">View Profile "; } // line 178 yield "
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['key'], $context['___user'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 185 yield "
"; // line 194 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/footer.html.twig"); yield "
"; // line 200 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 "user-list.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 335 => 200, 326 => 194, 315 => 185, 303 => 178, 297 => 176, 295 => 175, 290 => 174, 288 => 173, 263 => 151, 256 => 149, 248 => 143, 240 => 141, 234 => 139, 232 => 138, 222 => 130, 213 => 124, 205 => 119, 197 => 114, 190 => 109, 188 => 108, 182 => 104, 178 => 102, 176 => 101, 158 => 85, 154 => 84, 140 => 72, 134 => 68, 132 => 67, 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') }}
{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Users' %} Add User {% endif %}
{% for key, ___user in userlist %}
\"\"
{% if ___user.account_disabled %} Disabled {% endif %}
{% if user.roles.ROLE_SUPERADMIN is defined and page.title == 'Users' %} {% endif %}
{% if ___user.avatar != '' %} \"\" {% else %}
{{ ___user.first_name|slice(0, 1)}} {{ ___user.second_name|slice(0, 1)}}
{% endif %}
{% if page.title == 'Users' %} View Profile {% elseif page.title == 'Directory' %} View Profile {% endif %}
{% endfor %}
{{ include('partials/footer.html.twig') }}
{{ include('partials/vendor-scripts.html.twig') }} ", "user-list.html.twig", "/var/www/cds-intranet/app/templates/user-list.html.twig"); } }