*/ 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/user/user-files.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/user/user-files.html.twig")); // line 1 yield "

User Files

"; // line 12 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 12, $this->source); })()) == "view"))) { // line 13 yield " "; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 15 ($context["user"] ?? null), "roles", [], "any", false, true, false, 15), "ROLE_SUPERADMIN", [], "any", true, true, false, 15)) { // line 16 yield " "; } // line 18 yield "
"; // line 24 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "avatar", [], "any", true, true, false, 24) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 24, $this->source); })()), "avatar", [], "any", false, false, false, 24) != ""))) { // line 25 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 25, $this->source); })()), "avatar", [], "any", false, false, false, 25), "html", null, true); yield "\" class=\"rounded avatar-xl\" /> "; } else { // line 27 yield " Not present "; } // line 29 yield "
"; // line 40 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 40, $this->source); })()) == "view"))) { // line 41 yield " "; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 42 ($context["user"] ?? null), "roles", [], "any", false, true, false, 42), "ROLE_SUPERADMIN", [], "any", true, true, false, 42)) { // line 43 yield "

Ideal dimensions: width 142px; height 171px;

"; } // line 49 yield "
"; // line 54 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "email_avatar", [], "any", true, true, false, 54) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 54, $this->source); })()), "email_avatar", [], "any", false, false, false, 54) != ""))) { // line 55 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 55, $this->source); })()), "email_avatar", [], "any", false, false, false, 55), "html", null, true); yield "\" class=\"rounded avatar-xl\" /> "; } else { // line 57 yield " Not present "; } // line 59 yield "
"; // line 70 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 70, $this->source); })()) == "view"))) { // line 71 yield " "; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 72 ($context["user"] ?? null), "roles", [], "any", false, true, false, 72), "ROLE_SUPERADMIN", [], "any", true, true, false, 72)) { // line 73 yield " "; } // line 75 yield "
"; // line 81 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "contract_employment", [], "any", true, true, false, 81) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 81, $this->source); })()), "contract_employment", [], "any", false, false, false, 81) != ""))) { // line 82 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "roles", [], "any", false, true, false, 82), "ROLE_SUPERADMIN", [], "any", true, true, false, 82) || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 82, $this->source); })()), "id", [], "any", false, false, false, 82) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 82, $this->source); })()), "id", [], "any", false, false, false, 82)))) { // line 83 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 83, $this->source); })()), "contract_employment", [], "any", false, false, false, 83), "html", null, true); yield "\" target=\"_blank\">Download "; } else { // line 85 yield " Restricted access only "; } // line 87 yield " "; } else { // line 88 yield " Not present "; } // line 90 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/user/user-files.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 214 => 102, 210 => 100, 208 => 99, 205 => 98, 203 => 97, 194 => 90, 190 => 88, 187 => 87, 183 => 85, 177 => 83, 174 => 82, 172 => 81, 164 => 75, 160 => 73, 158 => 72, 155 => 71, 153 => 70, 140 => 59, 136 => 57, 130 => 55, 128 => 54, 121 => 49, 113 => 43, 111 => 42, 108 => 41, 106 => 40, 93 => 29, 89 => 27, 83 => 25, 81 => 24, 73 => 18, 69 => 16, 67 => 15, 63 => 13, 61 => 12, 48 => 1,); } public function getSourceContext(): Source { return new Source("

User Files

{% if mode is defined and mode == 'view' %} {% elseif user.roles.ROLE_SUPERADMIN is defined %} {% endif %}
{% if data.avatar is defined and data.avatar != '' %} {% else %} Not present {% endif %}
{% if mode is defined and mode == 'view' %} {% elseif user.roles.ROLE_SUPERADMIN is defined %}

Ideal dimensions: width 142px; height 171px;

{% endif %}
{% if data.email_avatar is defined and data.email_avatar != '' %} {% else %} Not present {% endif %}
{% if mode is defined and mode == 'view' %} {% elseif user.roles.ROLE_SUPERADMIN is defined %} {% endif %}
{% if data.contract_employment is defined and data.contract_employment != '' %} {% if user.roles.ROLE_SUPERADMIN is defined or user.id == data.id %} Download {% else %} Restricted access only {% endif %} {% else %} Not present {% endif %}
", "partials/user/user-files.html.twig", "/var/www/cds-intranet/app/templates/partials/user/user-files.html.twig"); } }