<?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;
use Twig\TemplateWrapper;
/* pages/sitemap/subnetwork-lines.html.twig */
class __TwigTemplate_e8ce5be60f19d55351b4b083a092fc1d extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layouts/common/default.html.twig";
}
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", "pages/sitemap/subnetwork-lines.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/sitemap/subnetwork-lines.html.twig"));
// line 3
$context["pageAttributes"] = ((array_key_exists("pageAttributes", $context)) ? ((isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 3, $this->source); })())) : (["group" => "sim", "section" => "sim"]));
// line 5
$context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.lines_schedules");
// line 6
$context["page_title"] = (((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 6, $this->source); })()) . " ") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subNetwork"]) || array_key_exists("subNetwork", $context) ? $context["subNetwork"] : (function () { throw new RuntimeError('Variable "subNetwork" does not exist.', 6, $this->source); })()), 0, [], "array", false, false, false, 6), "name", [], "any", false, false, false, 6));
// line 1
$this->parent = $this->load("layouts/common/default.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sitemap");
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nav.back"), "html", null, true);
yield "</a>
<h1 class=\"is-Page-H1\">";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sitemap.lines_schedules"), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subNetwork"]) || array_key_exists("subNetwork", $context) ? $context["subNetwork"] : (function () { throw new RuntimeError('Variable "subNetwork" does not exist.', 10, $this->source); })()), 0, [], "array", false, false, false, 10), "name", [], "any", false, false, false, 10), "html", null, true);
yield "</h1>
<ul>
";
// line 12
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["lines"]) || array_key_exists("lines", $context) ? $context["lines"] : (function () { throw new RuntimeError('Variable "lines" does not exist.', 12, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["line"]) {
// line 13
yield " ";
$context["name"] = "";
// line 14
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 14) == CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 14))) {
// line 15
yield " ";
$context["name"] = CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 15);
// line 16
yield " ";
} else {
// line 17
yield " ";
$context["name"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 17) . " ") . CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 17));
// line 18
yield " ";
}
// line 19
yield " ";
if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 19))) {
// line 20
yield " ";
$context["sName"] = "-";
// line 21
yield " ";
} else {
// line 22
yield " ";
$context["sName"] = CoreExtension::getAttribute($this->env, $this->source, $context["line"], "sName", [], "any", false, false, false, 22);
// line 23
yield " ";
}
// line 24
yield " <li>
<a href=\"";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("line.schedule.list", ["issubnet" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["line"], "subNetwork", [], "any", false, false, false, 25), "name", [], "any", false, false, false, 25), "ismode" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "mode", [], "any", false, false, false, 25), "islsn" => (isset($context["sName"]) || array_key_exists("sName", $context) ? $context["sName"] : (function () { throw new RuntimeError('Variable "sName" does not exist.', 25, $this->source); })()), "isdir" => "OUTWARD", "islid" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "id", [], "any", false, false, false, 25)]), "html", null, true);
yield "\"
title=\"";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 26), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("line.schedules_new_format", ["line" => (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 26, $this->source); })()), "network" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["line"], "subNetwork", [], "any", false, false, false, 26), "name", [], "any", false, false, false, 26)]), "html", null, true);
yield "
</a>
<a href=\"";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("line.schedule.print", ["issubnet" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["line"], "subNetwork", [], "any", false, false, false, 28), "name", [], "any", false, false, false, 28), "ismode" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "mode", [], "any", false, false, false, 28), "islsn" => (isset($context["sName"]) || array_key_exists("sName", $context) ? $context["sName"] : (function () { throw new RuntimeError('Variable "sName" does not exist.', 28, $this->source); })()), "isdir" => "OUTWARD", "islid" => CoreExtension::getAttribute($this->env, $this->source, $context["line"], "id", [], "any", false, false, false, 28)]), "html", null, true);
yield "\"
title=\"";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["line"], "lName", [], "any", false, false, false, 29), "html", null, true);
yield "\"> (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("print_in"), "html", null, true);
yield " PDF)
</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['line'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
yield " </ul>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "pages/sitemap/subnetwork-lines.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 164 => 33, 152 => 29, 148 => 28, 141 => 26, 137 => 25, 134 => 24, 131 => 23, 128 => 22, 125 => 21, 122 => 20, 119 => 19, 116 => 18, 113 => 17, 110 => 16, 107 => 15, 104 => 14, 101 => 13, 97 => 12, 90 => 10, 83 => 9, 70 => 8, 59 => 1, 57 => 6, 55 => 5, 53 => 3, 40 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layouts/common/default.html.twig' %}
{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}
{% set title = 'sitemap.lines_schedules' | trans %}
{% set page_title = title ~ ' ' ~ subNetwork[0].name %}
{% block content %}
<a href=\"{{ path('sitemap') }}\">{{ 'nav.back' | trans }}</a>
<h1 class=\"is-Page-H1\">{{ 'sitemap.lines_schedules' | trans }} {{ subNetwork[0].name }}</h1>
<ul>
{% for line in lines %}
{% set name = \"\" %}
{% if line.sName == line.lName %}
{% set name = line.sName %}
{% else %}
{% set name = line.sName ~ ' ' ~ line.lName %}
{% endif %}
{% if line.sName is empty %}
{% set sName = \"-\" %}
{% else %}
{% set sName = line.sName %}
{% endif %}
<li>
<a href=\"{{ path('line.schedule.list', {'issubnet': line.subNetwork.name, 'ismode': line.mode, 'islsn': sName, 'isdir': 'OUTWARD', 'islid': line.id}) }}\"
title=\"{{ line.lName }}\">{{ 'line.schedules_new_format' | trans({ 'line' : name, 'network' : line.subNetwork.name }) }}
</a>
<a href=\"{{ path('line.schedule.print', {'issubnet': line.subNetwork.name, 'ismode': line.mode, 'islsn': sName, 'isdir': 'OUTWARD', 'islid': line.id}) }}\"
title=\"{{ line.lName }}\"> ({{ 'print_in' | trans }} PDF)
</a>
</li>
{% endfor %}
</ul>
{% endblock %}
", "pages/sitemap/subnetwork-lines.html.twig", "/var/www/html/templates/pages/sitemap/subnetwork-lines.html.twig");
}
}