<?php
use 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;
/* @CmsModule/Dashboard/Modal/module.html.twig */
class __TwigTemplate_5224531a98986bb955e852ca515abac0 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'crumbs' => [$this, 'block_crumbs'],
'actions' => [$this, 'block_actions'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@CmsModule/Dashboard/Modal/includes/modal.html.twig";
}
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", "@CmsModule/Dashboard/Modal/module.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@CmsModule/Dashboard/Modal/module.html.twig"));
$this->parent = $this->loadTemplate("@CmsModule/Dashboard/Modal/includes/modal.html.twig", "@CmsModule/Dashboard/Modal/module.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_crumbs($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(), "block", "crumbs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "crumbs"));
// line 4
echo " <nav aria-label=\"breadcrumbs\">
<ol class=\"breadcrumb\">
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ancestors"]) || array_key_exists("ancestors", $context) ? $context["ancestors"] : (function () { throw new RuntimeError('Variable "ancestors" does not exist.', 6, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ancestor"]) {
// line 7
echo " <li>
<a href=\"";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env, $context, twig_get_attribute($this->env, $this->source, (isset($context["routes"]) || array_key_exists("routes", $context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.', 8, $this->source); })()), "module", [], "any", false, false, false, 8), ["containerId" => twig_get_attribute($this->env, $this->source, // line 9
$context["ancestor"], "id", [], "any", false, false, false, 9)]), "html", null, true);
// line 10
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ancestor"], "name", [], "any", false, false, false, 10), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ancestor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
echo " <li class=\"active\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["container"]) || array_key_exists("container", $context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.', 13, $this->source); })()), "name", [], "any", false, false, false, 13), "html", null, true);
echo "</li>
</ol>
</nav>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_actions($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(), "block", "actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
// line 19
echo " ";
if ((isset($context["workflowSkipper"]) || array_key_exists("workflowSkipper", $context) ? $context["workflowSkipper"] : (function () { throw new RuntimeError('Variable "workflowSkipper" does not exist.', 19, $this->source); })())) {
// line 20
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env, $context, twig_get_attribute($this->env, $this->source, (isset($context["routes"]) || array_key_exists("routes", $context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.', 20, $this->source); })()), "create", [], "any", false, false, false, 20)), "html", null, true);
echo "\">+ Create Page</a>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 24
public function block_body($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(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 25
echo " <div class=\"table-responsive\">
<table class=\"media\">
<thead class=\"media__thead\">
<tr class=\"media__row\">
<th class=\"media__details\">
<div class=\"\">Filename</div>
</th>
<th class=\"media__datetime\">
<div class=\"\">Date</div>
</th>
<th class=\"media__actions\"></th>
</tr>
</thead>
<tbody class=\"media__tbody\">
";
// line 39
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 39, $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["item"]) {
// line 40
echo " ";
$this->loadTemplate("@CmsModule/Dashboard/Modal/includes/item.html.twig", "@CmsModule/Dashboard/Modal/module.html.twig", 40)->display(twig_array_merge(twig_array_merge($context, ["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 41
$context["item"], "data", [], "any", false, false, false, 41), "title", [], "any", false, false, false, 41), "link" => twig_trim_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->env->getFunction('web_url_view')->getCallable()( // line 42
$context["item"]), "withHost", [0 => ""], "method", false, false, false, 42), "withScheme", [0 => ""], "method", false, false, false, 42)), "timestamp" => twig_get_attribute($this->env, $this->source, // line 43
$context["item"], "timestampedAt", [], "any", false, false, false, 43)]), ['_args' => twig_to_array(["title" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 41
$context["item"], "data", [], "any", false, false, false, 41), "title", [], "any", false, false, false, 41), "link" => twig_trim_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->env->getFunction('web_url_view')->getCallable()( // line 42
$context["item"]), "withHost", [0 => ""], "method", false, false, false, 42), "withScheme", [0 => ""], "method", false, false, false, 42)), "timestamp" => twig_get_attribute($this->env, $this->source, // line 43
$context["item"], "timestampedAt", [], "any", false, false, false, 43)])]));
// line 45
echo " ";
++$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['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo " </tbody>
</table>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CmsModule/Dashboard/Modal/module.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 202 => 46, 188 => 45, 186 => 43, 185 => 42, 184 => 41, 183 => 43, 182 => 42, 181 => 41, 179 => 40, 162 => 39, 146 => 25, 136 => 24, 122 => 20, 119 => 19, 109 => 18, 94 => 13, 84 => 10, 82 => 9, 81 => 8, 78 => 7, 74 => 6, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@CmsModule/Dashboard/Modal/includes/modal.html.twig' %}
{% block crumbs %}
<nav aria-label=\"breadcrumbs\">
<ol class=\"breadcrumb\">
{% for ancestor in ancestors %}
<li>
<a href=\"{{- curpath(routes.module, {
containerId: ancestor.id
}) -}}\">{{ ancestor.name }}</a>
</li>
{% endfor %}
<li class=\"active\">{{ container.name }}</li>
</ol>
</nav>
{% endblock %}
{% block actions %}
{% if workflowSkipper %}
<a href=\"{{ curpath(routes.create) }}\">+ Create Page</a>
{% endif %}
{% endblock %}
{% block body %}
<div class=\"table-responsive\">
<table class=\"media\">
<thead class=\"media__thead\">
<tr class=\"media__row\">
<th class=\"media__details\">
<div class=\"\">Filename</div>
</th>
<th class=\"media__datetime\">
<div class=\"\">Date</div>
</th>
<th class=\"media__actions\"></th>
</tr>
</thead>
<tbody class=\"media__tbody\">
{% for item in items %}
{% include '@CmsModule/Dashboard/Modal/includes/item.html.twig' with {
title: item.data.title,
link: web_url_view(item).withHost('').withScheme('')|trim,
timestamp: item.timestampedAt,
} %}
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
", "@CmsModule/Dashboard/Modal/module.html.twig", "/var/www/campussuite/src/Cms/ModuleBundle/Resources/views/Dashboard/Modal/module.html.twig");
}
}