<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* company/list.html.twig */
class __TwigTemplate_5c1695e929bdfbdb58196a014a7d8d2b6a0ea0b7bb6c2e98ed7aec47a24c2ed4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'items_description' => [$this, 'block_items_description'],
'pagination' => [$this, 'block_pagination'],
];
}
protected function doGetParent(array $context)
{
// line 6
return "company/base_list.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "company/list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "company/list.html.twig"));
// line 1
$context["suffix"] = (((0 === CoreExtension::compare((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 1, $this->source); })()), 1))) ? ("") : ("_with_page"));
// line 2
$context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("company_list" . (isset($context["suffix"]) || array_key_exists("suffix", $context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.', 2, $this->source); })())) . ".title"), ["%page%" => (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 2, $this->source); })())]);
// line 3
$context["description"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("company_list" . (isset($context["suffix"]) || array_key_exists("suffix", $context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.', 3, $this->source); })())) . ".description"), ["%page%" => (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 3, $this->source); })())]);
// line 4
$context["keywords"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((("company_list" . (isset($context["suffix"]) || array_key_exists("suffix", $context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.', 4, $this->source); })())) . ".keywords"), ["%page%" => (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 4, $this->source); })())]);
// line 6
$this->parent = $this->loadTemplate("company/base_list.html.twig", "company/list.html.twig", 6);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_items_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "items_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "items_description"));
// line 9
yield " <p>";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company_list.list");
yield "</p>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 12
public function block_pagination($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pagination"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pagination"));
// line 13
yield " <div class=\"toolbar-bottom-container\">
<nav class=\"pagination-container\">
";
// line 15
if ((1 === CoreExtension::compare((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 15, $this->source); })()), 1))) {
// line 16
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_list", ["page" => ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 16, $this->source); })()) - 1)]), "html", null, true);
yield "\" class=\"p-i-previous\"></a>
";
} else {
// line 18
yield " <span class=\"p-i-previous p-i-disabled\"></span>
";
}
// line 20
yield " <span class=\"pagination-pages\">
";
// line 21
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 21, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 22
yield " ";
if ((0 === CoreExtension::compare($context["p"], (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 22, $this->source); })())))) {
// line 23
yield " <span class=\"pagination-item p-i p-i-disabled\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html", null, true);
yield "</span>
";
} elseif ((0 === CoreExtension::compare( // line 24
$context["p"], "..."))) {
// line 25
yield " <span class=\"pagination-item p-i\">…</span>
";
} else {
// line 27
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_list", ["page" => $context["p"]]), "html", null, true);
yield "\" class=\"pagination-item p-i\">
";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["p"], "html", null, true);
yield "
</a>
";
}
// line 31
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
yield " </span>
";
// line 33
if ((-1 === CoreExtension::compare((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 33, $this->source); })()), Twig\Extension\CoreExtension::last($this->env->getCharset(), (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 33, $this->source); })()))))) {
// line 34
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_list", ["page" => ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 34, $this->source); })()) + 1)]), "html", null, true);
yield "\" class=\"p-i-next\"></a>
";
} else {
// line 36
yield " <span class=\"p-i-next p-i-disabled\"></span>
";
}
// line 38
yield " </nav>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "company/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 172 => 38, 168 => 36, 162 => 34, 160 => 33, 157 => 32, 151 => 31, 145 => 28, 140 => 27, 136 => 25, 134 => 24, 129 => 23, 126 => 22, 122 => 21, 119 => 20, 115 => 18, 109 => 16, 107 => 15, 103 => 13, 93 => 12, 79 => 9, 69 => 8, 58 => 6, 56 => 4, 54 => 3, 52 => 2, 50 => 1, 37 => 6,);
}
public function getSourceContext()
{
return new Source("{% set suffix = currentPage == 1 ? '' : '_with_page' %}
{% set title = ('company_list' ~ suffix ~ '.title')|trans({'%page%': currentPage}) %}
{% set description = ('company_list' ~ suffix ~ '.description')|trans({'%page%': currentPage}) %}
{% set keywords = ('company_list' ~ suffix ~ '.keywords')|trans({'%page%': currentPage}) %}
{% extends 'company/base_list.html.twig' %}
{% block items_description %}
<p>{{ 'company_list.list'|trans|raw }}</p>
{% endblock items_description %}
{% block pagination %}
<div class=\"toolbar-bottom-container\">
<nav class=\"pagination-container\">
{% if currentPage > 1 %}
<a href=\"{{ path('company_list', { page: currentPage - 1 }) }}\" class=\"p-i-previous\"></a>
{% else %}
<span class=\"p-i-previous p-i-disabled\"></span>
{% endif %}
<span class=\"pagination-pages\">
{% for p in pagination %}
{% if p == currentPage %}
<span class=\"pagination-item p-i p-i-disabled\">{{ p }}</span>
{% elseif p == '...' %}
<span class=\"pagination-item p-i\">…</span>
{% else %}
<a href=\"{{ path('company_list', { page: p }) }}\" class=\"pagination-item p-i\">
{{ p }}
</a>
{% endif %}
{% endfor %}
</span>
{% if currentPage < pagination|last %}
<a href=\"{{ path('company_list', { page: currentPage + 1 }) }}\" class=\"p-i-next\"></a>
{% else %}
<span class=\"p-i-next p-i-disabled\"></span>
{% endif %}
</nav>
</div>
{% endblock pagination %}", "company/list.html.twig", "/var/www/brc_frontend/templates/company/list.html.twig");
}
}