*/ 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", ["title" => "Users"]); 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", ["section" => "CDS", "section_link" => "/cds", "title" => "Users"]); yield "
Add User
"; // line 81 $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.', 81, $this->source); })())); foreach ($context['_seq'] as $context["key"] => $context["___user"]) { // line 82 yield "
\"\"
"; // line 98 if (CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "account_disabled", [], "any", false, false, false, 98)) { // line 99 yield " Disabled "; } // line 101 yield "
"; // line 105 if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 105), "ROLE_SUPERADMIN", [], "any", true, true, false, 105)) { // line 106 yield " "; } // line 122 yield "
"; // line 130 if ((CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "avatar", [], "any", false, false, false, 130) != "")) { // line 131 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["___user"], "avatar", [], "any", false, false, false, 131), "html", null, true); yield "\" alt=\"\" class=\"member-img img-fluid d-block rounded-circle\" /> "; } else { // line 133 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, 133), 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, 133), 0, 1), "html", null, true); yield "
"; } // line 135 yield "
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['key'], $context['___user'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 173 yield "
"; // line 182 yield Twig\Extension\CoreExtension::include($this->env, $context, "partials/footer.html.twig"); yield "
"; // line 188 yield Twig\Extension\CoreExtension::include($this->env, $context, "theme/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 ( 300 => 188, 291 => 182, 280 => 173, 244 => 143, 237 => 141, 229 => 135, 221 => 133, 215 => 131, 213 => 130, 203 => 122, 194 => 116, 186 => 111, 179 => 106, 177 => 105, 171 => 101, 167 => 99, 165 => 98, 147 => 82, 143 => 81, 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', {title: 'Users'}) }} {{ include('partials/head-css.html.twig') }}
{{ include('partials/menu.html.twig') }}
{{ include('partials/page-title.html.twig', {section: 'CDS', section_link: '\\/cds', title: 'Users'}) }}
Add User
{% for key, ___user in userlist %}
\"\"
{% if ___user.account_disabled %} Disabled {% endif %}
{% if user.roles.ROLE_SUPERADMIN is defined %} {% endif %}
{% if ___user.avatar != '' %} \"\" {% else %}
{{ ___user.first_name|slice(0, 1)}} {{ ___user.second_name|slice(0, 1)}}
{% endif %}
{% endfor %}
{{ include('partials/footer.html.twig') }}
{{ include('theme/partials/vendor-scripts.html.twig') }} ", "user-list.html.twig", "/var/www/cds/app/templates/user-list.html.twig"); } }