var/cache/dev/twig/2d/2d665b3112a31ed0f7e6992322c4d575.php line 33
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;/* Articles/list.html.twig */class __TwigTemplate_b90f2e5afb78ab96dd62ea33501efa99 extends Template{private $source;private $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 = []){$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", "Articles/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", "Articles/list.html.twig"));// line 1echo "<table><thead><tr><th class=\"data-enabled-header\">N°</th><th>Titre</th>\t\t<th>Publication</th><th>Utilisateur</th><th>Actions</th></tr></thead>\t";// line 11$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["list"]) || array_key_exists("list", $context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.', 11, $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["o"]) {// line 12echo "\t<tr data-enabled=\"";echo (( !(twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 12) === null)) ? ((((twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 12) == 1)) ? (1) : (0))) : (""));echo "\">\t\t<td>";// line 13echo twig_escape_filter($this->env, (twig_length_filter($this->env, (isset($context["list"]) || array_key_exists("list", $context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.', 13, $this->source); })())) - twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 13)), "html", null, true);echo "</td>\t\t<td><div class=\"flex row middle\">\t\t\t\t";// line 16if (twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 16)) {// line 17echo " <div class=\"relative icon big os-image\" data-image=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 17), "file", [], "any", false, false, false, 17)), "html", null, true);echo "\"><img src=\"";// line 18echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 18), "thumbnail", [], "any", false, false, false, 18)), "html", null, true);echo "\" class=\"cover\"></div>\t\t\t\t ";}// line 21echo " <div class=\"left-20\"><b class=\"h4\">";// line 22echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 22), "html", null, true);echo "</b></div></div></td>\t\t<td>";// line 28if (twig_get_attribute($this->env, $this->source, $context["o"], "category", [], "any", false, false, false, 28)) {// line 29echo " <span class=\"success upper\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "category", [], "any", false, false, false, 29), "name", [], "any", false, false, false, 29), "html", null, true);echo "</span>";}// line 31echo " <br>";echo twig_escape_filter($this->env, $this->env->getFilter('pretty_date')->getCallable()(twig_get_attribute($this->env, $this->source, $context["o"], "date", [], "any", false, false, false, 31)), "html", null, true);echo " à ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "date", [], "any", false, false, false, 31), "H:i"), "html", null, true);echo "</td>\t\t<td>";// line 34if (twig_get_attribute($this->env, $this->source, $context["o"], "user", [], "any", false, false, false, 34)) {echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "user", [], "any", false, false, false, 34), "lName", [], "any", false, false, false, 34) . " ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "user", [], "any", false, false, false, 34), "fName", [], "any", false, false, false, 34)), "html", null, true);}// line 35echo " <br>";echo twig_escape_filter($this->env, $this->env->getFilter('frdate')->getCallable()(twig_get_attribute($this->env, $this->source, $context["o"], "createdAt", [], "any", false, false, false, 35)), "html", null, true);echo " à ";echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "createdAt", [], "any", false, false, false, 35), "H:i"), "html", null, true);echo "</td>\t\t<td>\t\t\t<a href=\"";// line 38echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("articles-edit", ["id" => twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 38)]), "html", null, true);echo "\" title=\"Modifier\" class=\"action fas fa-edit btn-popup semi\"></a>\t\t\t<a href=\"";// line 39echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["o"], "URL", [], "any", false, false, false, 39)) ? (twig_get_attribute($this->env, $this->source, $context["o"], "URL", [], "any", false, false, false, 39)) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article", ["id" => twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 39), "slug" => "preview"]))), "html", null, true);echo "\" title=\"Lire l'article\" class=\"action fab fa-readme\" target=\"_blank\"></a>\t\t\t";// line 40if (twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 40)) {echo "<a data-target=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 40), "file", [], "any", false, false, false, 40)), "html", null, true);echo "\" title=\"Voir la bannière\" class=\"action fas fa-image os-image\"></a>";}// line 41echo "\t\t\t<br>";if (twig_get_attribute($this->env, $this->source, $context["o"], "generatedPdf", [], "any", false, false, false, 41)) {echo "<a data-target=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "generatedPdf", [], "any", false, false, false, 41), "file", [], "any", false, false, false, 41)), "html", null, true);echo "\" title=\"Voir le document généré\" class=\"action fas fa-eye os-read\"></a>";}// line 42echo "\t\t\t<a href=\"";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("articles-enable", ["id" => twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 42)]), "html", null, true);echo "\" class=\"action btn-flash fa ";echo ((twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 42)) ? ("fa-times") : ("fa-check"));echo "\" title=\"";echo ((twig_get_attribute($this->env, $this->source, $context["o"], "isEnabled", [], "any", false, false, false, 42)) ? ("Désactiver") : ("Activer"));echo "\"></a>\t\t\t<a href=\"";// line 43echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("articles-onefrontpage", ["id" => twig_get_attribute($this->env, $this->source, $context["o"], "id", [], "any", false, false, false, 43)]), "html", null, true);echo "\" class=\"action fa fa-paper-plane\" title=\"Afficher cet article à la une (sur la page d\\'accueil)\"></a>\t\t</td>\t</tr>\t";++$context['loop']['index0'];++$context['loop']['index'];$context['loop']['first'] = false;if (isset($context['loop']['length'])) {--$context['loop']['revindex0'];--$context['loop']['revindex'];$context['loop']['last'] = 0 === $context['loop']['revindex0'];}}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 47echo "</table>";$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}public function getTemplateName(){return "Articles/list.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 186 => 47, 168 => 43, 159 => 42, 152 => 41, 146 => 40, 142 => 39, 138 => 38, 129 => 35, 125 => 34, 116 => 31, 110 => 29, 108 => 28, 99 => 22, 96 => 21, 90 => 18, 85 => 17, 83 => 16, 77 => 13, 72 => 12, 55 => 11, 43 => 1,);}public function getSourceContext(){return new Source("<table><thead><tr><th class=\"data-enabled-header\">N°</th><th>Titre</th>\t\t<th>Publication</th><th>Utilisateur</th><th>Actions</th></tr></thead>\t{% for o in list %}\t<tr data-enabled=\"{{o.isEnabled is not same as (null) ? o.isEnabled == 1 ? 1 : 0 : ''}}\">\t\t<td>{{list|length-loop.index0}}</td>\t\t<td><div class=\"flex row middle\">\t\t\t\t{% if o.banner %}<div class=\"relative icon big os-image\" data-image=\"{{asset(o.banner.file)}}\"><img src=\"{{asset(o.banner.thumbnail)}}\" class=\"cover\"></div>\t\t\t\t {% endif %}<div class=\"left-20\"><b class=\"h4\">{{o.title}}</b></div></div></td>\t\t<td>{% if o.category %}<span class=\"success upper\">{{o.category.name}}</span>{% endif %}<br>{{o.date|pretty_date}} à {{o.date|date('H:i')}}</td>\t\t<td>{% if o.user %}{{o.user.lName~\" \"~o.user.fName}}{% endif %}<br>{{o.createdAt|frdate}} à {{o.createdAt|date('H:i')}}</td>\t\t<td>\t\t\t<a href=\"{{path('articles-edit',{'id':o.id})}}\" title=\"Modifier\" class=\"action fas fa-edit btn-popup semi\"></a>\t\t\t<a href=\"{{o.URL ? o.URL : path('article',{'id':o.id,'slug':'preview'})}}\" title=\"Lire l'article\" class=\"action fab fa-readme\" target=\"_blank\"></a>\t\t\t{% if o.banner %}<a data-target=\"{{asset(o.banner.file)}}\" title=\"Voir la bannière\" class=\"action fas fa-image os-image\"></a>{%endif%}\t\t\t<br>{% if o.generatedPdf %}<a data-target=\"{{asset(o.generatedPdf.file)}}\" title=\"Voir le document généré\" class=\"action fas fa-eye os-read\"></a>{%endif%}\t\t\t<a href=\"{{path('articles-enable',{id:o.id})}}\" class=\"action btn-flash fa {{ o.isEnabled ? 'fa-times' : 'fa-check' }}\" title=\"{{ o.isEnabled ? 'Désactiver' : 'Activer' }}\"></a>\t\t\t<a href=\"{{path('articles-onefrontpage',{id:o.id})}}\" class=\"action fa fa-paper-plane\" title=\"Afficher cet article à la une (sur la page d\\'accueil)\"></a>\t\t</td>\t</tr>\t{% endfor %}</table>", "Articles/list.html.twig", "/home/olasoftnka/asin/templates/Articles/list.html.twig");}}