var/cache/test/twig/50/5043131b43ed1771895c12a0253c786c.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @App/dashboard/websites/content/_list_legacy.html.twig */
  14. class __TwigTemplate_4063c1d45b82d1d4e2a63f90ee396f46 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'modals' => [$this'block_modals'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@App/dashboard/websites/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/websites/content/_list_legacy.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/websites/content/_list_legacy.html.twig"));
  39.         // line 3
  40.         $this->extensions['App\Twig\Extension\DomExtension']->dom_title_($context"section""Dashboard");
  41.         // line 1
  42.         $this->parent $this->loadTemplate("@App/dashboard/websites/base.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 5
  50.     public function block_content($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         // line 6
  58.         echo "    <div class=\"row mb-4\">
  59.         <div class=\"col text-right\">
  60.             ";
  61.         // line 8
  62.         if (twig_length_filter($this->env, (isset($context["sites"]) || array_key_exists("sites"$context) ? $context["sites"] : (function () { throw new RuntimeError('Variable "sites" does not exist.'8$this->source); })()))) {
  63.             // line 9
  64.             echo "                ";
  65.             $this->loadTemplate("@ui2022/button--a.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"9)->display(twig_array_merge(twig_array_merge($context, ["text" => "View Site""link" => twig_get_attribute($this->env$this->source$this->env->getFunction('web_url_catchall')->getCallable()(twig_get_attribute($this->env$this->source,             // line 11
  66. (isset($context["sites"]) || array_key_exists("sites"$context) ? $context["sites"] : (function () { throw new RuntimeError('Variable "sites" does not exist.'11$this->source); })()), 0, [], "array"falsefalsefalse11)), "withQueryParameter", [=> "_mimic"=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "user", [], "any"falsefalsefalse11), "uid", [], "any"falsefalsefalse11)], "method"falsefalsefalse11), "styles" => "gray""attr" => ["class" => "mr-3"]]), ['_args' => twig_to_array(["text" => "View Site""link" => twig_get_attribute($this->env$this->source$this->env->getFunction('web_url_catchall')->getCallable()(twig_get_attribute($this->env$this->source, (isset($context["sites"]) || array_key_exists("sites"$context) ? $context["sites"] : (function () { throw new RuntimeError('Variable "sites" does not exist.'11$this->source); })()), 0, [], "array"falsefalsefalse11)), "withQueryParameter", [=> "_mimic"=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "user", [], "any"falsefalsefalse11), "uid", [], "any"falsefalsefalse11)], "method"falsefalsefalse11), "styles" => "gray""attr" => ["class" => "mr-3"]])]));
  67.             // line 17
  68.             echo "            ";
  69.         }
  70.         // line 18
  71.         echo "            ";
  72.         $this->loadTemplate("@ui2022/button--a.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"18)->display(twig_array_merge(twig_array_merge($context, ["text" => "+ Add""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.websites.content.add"), "styles" => "primary""modal" => "modal__add"]), ['_args' => twig_to_array(["text" => "+ Add""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.websites.content.add"), "styles" => "primary""modal" => "modal__add"])]));
  73.         // line 24
  74.         echo "        </div>
  75.     </div>
  76.     <div class=\"row\">
  77.         <div class=\"col\">
  78.             ";
  79.         // line 28
  80.         $this->loadTemplate("@ui2022/table-filter.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"28)->display(twig_array_merge(twig_array_merge($context, ["form" =>         // line 29
  81. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })())]), ['_args' => twig_to_array(["form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'29$this->source); })())])]));
  82.         // line 31
  83.         echo "            <div id=\"";
  84.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "vars", [], "any"falsefalsefalse31), "id", [], "any"falsefalsefalse31), "html"nulltrue);
  85.         echo "__results\">
  86.                 ";
  87.         // line 32
  88.         $context["headers"] = [=> ["title" => "Name""sort" => "name"], => ["title" => "Type""spacing" => 15], => ["title" => "Last Modified""spacing" => 25"sort" => "timestamp"]];
  89.         // line 47
  90.         echo "                ";
  91.         $this->loadTemplate("@App/dashboard/websites/content/_list_legacy.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"47"2126852248")->display(twig_array_merge(twig_array_merge($context, ["form" =>         // line 48
  92. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'48$this->source); })()), "headers" =>         // line 49
  93. (isset($context["headers"]) || array_key_exists("headers"$context) ? $context["headers"] : (function () { throw new RuntimeError('Variable "headers" does not exist.'49$this->source); })()), "items" =>         // line 50
  94. (isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'50$this->source); })())]), ['_args' => twig_to_array(["form" =>         // line 48
  95. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'48$this->source); })()), "headers" =>         // line 49
  96. (isset($context["headers"]) || array_key_exists("headers"$context) ? $context["headers"] : (function () { throw new RuntimeError('Variable "headers" does not exist.'49$this->source); })()), "items" =>         // line 50
  97. (isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'50$this->source); })())])]));
  98.         // line 117
  99.         echo "
  100.                 ";
  101.         // line 118
  102.         if (( !twig_test_empty((isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'118$this->source); })())) && array_key_exists("pagination"$context))) {
  103.             // line 119
  104.             echo "                    ";
  105.             $this->loadTemplate("@ui2022/pagination.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"119)->display(twig_array_merge(twig_array_merge($context, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'119$this->source); })())), ['_args' => twig_to_array((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'119$this->source); })()))]));
  106.             // line 120
  107.             echo "                ";
  108.         }
  109.         // line 121
  110.         echo "
  111.             </div>
  112.         </div>
  113.     </div>
  114. ";
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     // line 127
  121.     public function block_modals($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modals"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modals"));
  128.         // line 128
  129.         echo "    ";
  130.         $this->displayParentBlock("modals"$context$blocks);
  131.         echo "
  132.     ";
  133.         // line 129
  134.         $this->loadTemplate("@ui2022/modal.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"129)->display(twig_array_merge(twig_array_merge($context, ["attr" => ["id" => "feed-entry-modal2"]]), ['_args' => twig_to_array(["attr" => ["id" => "feed-entry-modal2"]])]));
  135.         // line 134
  136.         echo "    ";
  137.         $this->loadTemplate("@ui2022/modal.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"134)->display(twig_array_merge(twig_array_merge($context, ["dialog_styles" => "scrollable centered""attr" => ["id" => "modal__add""class" => "modal-ajax"]]), ['_args' => twig_to_array(["dialog_styles" => "scrollable centered""attr" => ["id" => "modal__add""class" => "modal-ajax"]])]));
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     public function getTemplateName()
  144.     {
  145.         return "@App/dashboard/websites/content/_list_legacy.html.twig";
  146.     }
  147.     public function isTraitable()
  148.     {
  149.         return false;
  150.     }
  151.     public function getDebugInfo()
  152.     {
  153.         return array (  155 => 134,  153 => 129,  148 => 128,  138 => 127,  124 => 121,  121 => 120,  118 => 119,  116 => 118,  113 => 117,  111 => 50,  110 => 49,  109 => 48,  108 => 50,  107 => 49,  106 => 48,  104 => 47,  102 => 32,  97 => 31,  95 => 29,  94 => 28,  88 => 24,  85 => 18,  82 => 17,  80 => 11,  78 => 9,  76 => 8,  72 => 6,  62 => 5,  51 => 1,  49 => 3,  36 => 1,);
  154.     }
  155.     public function getSourceContext()
  156.     {
  157.         return new Source("{% extends '@App/dashboard/websites/base.html.twig' %}
  158. {% do dom_title_section('Dashboard') %}
  159. {% block content %}
  160.     <div class=\"row mb-4\">
  161.         <div class=\"col text-right\">
  162.             {% if sites|length %}
  163.                 {% include '@ui2022/button--a.html.twig' with {
  164.                     text: 'View Site',
  165.                     link: web_url_catchall(sites[0]).withQueryParameter('_mimic', app.user.uid),
  166.                     styles: 'gray',
  167.                     attr: {
  168.                         class: 'mr-3',
  169.                     },
  170.                 } %}
  171.             {% endif %}
  172.             {% include '@ui2022/button--a.html.twig' with {
  173.                 text: '+ Add',
  174.                 link: path('app.app.dashboard.websites.content.add'),
  175.                 styles: 'primary',
  176.                 modal: 'modal__add',
  177.             } %}
  178.         </div>
  179.     </div>
  180.     <div class=\"row\">
  181.         <div class=\"col\">
  182.             {% include '@ui2022/table-filter.html.twig' with {
  183.                 form: form,
  184.             } %}
  185.             <div id=\"{{ form.vars.id }}__results\">
  186.                 {% set headers = [
  187.                     {
  188.                         title: 'Name',
  189.                         sort: 'name',
  190.                     },
  191.                     {
  192.                         title: 'Type',
  193.                         spacing: 15,
  194.                     },
  195.                     {
  196.                         title: 'Last Modified',
  197.                         spacing: 25,
  198.                         sort: 'timestamp',
  199.                     },
  200.                 ] %}
  201.                 {% embed '@ui2022/table--search.html.twig' with {
  202.                     form: form,
  203.                     headers: headers,
  204.                     items: items,
  205.                 } %}
  206.                     {% block items %}
  207.                         {% for item in items %}
  208.                             {% set school = item.container|schoolify %}
  209.                             {% set link = web_url_view(item) %}
  210.                             {% set isGranted = is_granted(
  211.                                 attributes_expression([
  212.                                     item.department ? 'campussuite.cms.container.%s.manage'|format(item.department.type) : null,
  213.                                     'campussuite.cms.module.manage',
  214.                                     'campussuite.cms.modules.page.manage',
  215.                                 ]),
  216.                                 [item, item.department],
  217.                             ) %}
  218.                             <tr>
  219.                                 {% include '@ui2022/table__item__cell--status.html.twig' with {
  220.                                     title: item.data.ui,
  221.                                     link: link ? link.withQueryParameter('_mimic', app.user.uid) : null,
  222.                                     actions: [],
  223.                                     status: (not item.placeholder) ? 'sent' : 'draft',
  224.                                     subtext: (not item.placeholder) ? 'Published' : 'Draft',
  225.                                     subicon: school ? 'icon-ui-board' : 'icon-folder',
  226.                                     subinfo: (not school) ? item.container.name : (
  227.                                         (school.department and school.department is same as (item.container))
  228.                                             ? school.name
  229.                                             : '%s > %s'|format(
  230.                                                 school.name,
  231.                                                 item.container.name
  232.                                             )
  233.                                     ),
  234.                                     actions: [
  235.                                         isGranted ? {
  236.                                             text: 'More',
  237.                                             dropdown: {
  238.                                                 items: [
  239.                                                     {
  240.                                                         text: 'Delete',
  241.                                                         link: path(paths.delete|format(item.discr), {
  242.                                                             object: item.id,
  243.                                                         }),
  244.                                                         modal: 'feed-entry-modal2',
  245.                                                     },
  246.                                                 ],
  247.                                             },
  248.                                         } : null,
  249.                                         isGranted ? {
  250.                                             text: 'Edit',
  251.                                             link: path(paths.update|format(item.discr), {
  252.                                                 object: item.id,
  253.                                             }),
  254.                                         } : null,
  255.                                     ]|filter((v) => v is not empty),
  256.                                 } %}
  257.                                 <td>
  258.                                     {{ 'app.content.types.%s'|format(item.discr)|trans }}
  259.                                 </td>
  260.                                 <td>
  261.                                     {{ item.timestampedAt|ui_relativeDate }}
  262.                                     {% if item.blamedBy %}
  263.                                         <div class=\"font-12\">{{ item.blamedBy.displayName }}</div>
  264.                                     {% endif %}
  265.                                 </td>
  266.                             </tr>
  267.                         {% endfor %}
  268.                     {% endblock %}
  269.                 {% endembed %}
  270.                 {% if items is not empty and pagination is defined %}
  271.                     {% include '@ui2022/pagination.html.twig' with pagination %}
  272.                 {% endif %}
  273.             </div>
  274.         </div>
  275.     </div>
  276. {% endblock %}
  277. {% block modals %}
  278.     {{ parent() }}
  279.     {% include '@ui2022/modal.html.twig' with {
  280.         attr: {
  281.             id: 'feed-entry-modal2',
  282.         },
  283.     } %}
  284.     {% include '@ui2022/modal.html.twig' with {
  285.         dialog_styles: 'scrollable centered',
  286.         attr: {
  287.             id: 'modal__add',
  288.             class: 'modal-ajax',
  289.         },
  290.     } %}
  291. {% endblock %}
  292. ""@App/dashboard/websites/content/_list_legacy.html.twig""/var/www/campussuite/src/App/Resources/views/dashboard/websites/content/_list_legacy.html.twig");
  293.     }
  294. }
  295. /* @App/dashboard/websites/content/_list_legacy.html.twig */
  296. class __TwigTemplate_4063c1d45b82d1d4e2a63f90ee396f46___2126852248 extends \Twig\Template
  297. {
  298.     private $source;
  299.     private $macros = [];
  300.     public function __construct(Environment $env)
  301.     {
  302.         parent::__construct($env);
  303.         $this->source $this->getSourceContext();
  304.         $this->blocks = [
  305.             'items' => [$this'block_items'],
  306.         ];
  307.     }
  308.     protected function doGetParent(array $context)
  309.     {
  310.         // line 47
  311.         return "@ui2022/table--search.html.twig";
  312.     }
  313.     protected function doDisplay(array $context, array $blocks = [])
  314.     {
  315.         $macros $this->macros;
  316.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  317.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/websites/content/_list_legacy.html.twig"));
  318.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  319.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/websites/content/_list_legacy.html.twig"));
  320.         $this->parent $this->loadTemplate("@ui2022/table--search.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"47);
  321.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  322.         
  323.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  324.         
  325.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  326.     }
  327.     // line 52
  328.     public function block_items($context, array $blocks = [])
  329.     {
  330.         $macros $this->macros;
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  332.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  334.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  335.         // line 53
  336.         echo "                        ";
  337.         $context['_parent'] = $context;
  338.         $context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'53$this->source); })()));
  339.         $context['loop'] = [
  340.           'parent' => $context['_parent'],
  341.           'index0' => 0,
  342.           'index'  => 1,
  343.           'first'  => true,
  344.         ];
  345.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  346.             $length count($context['_seq']);
  347.             $context['loop']['revindex0'] = $length 1;
  348.             $context['loop']['revindex'] = $length;
  349.             $context['loop']['length'] = $length;
  350.             $context['loop']['last'] = === $length;
  351.         }
  352.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  353.             // line 54
  354.             echo "                            ";
  355.             $context["school"] = $this->extensions['App\Twig\Extension\MiscellaneousExtension']->schoolify(twig_get_attribute($this->env$this->source$context["item"], "container", [], "any"falsefalsefalse54));
  356.             // line 55
  357.             echo "                            ";
  358.             $context["link"] = $this->env->getFunction('web_url_view')->getCallable()($context["item"]);
  359.             // line 56
  360.             echo "
  361.                             ";
  362.             // line 57
  363.             $context["isGranted"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted($this->extensions['App\Twig\Extension\SecurityExtension']->attributesExpression([=> ((twig_get_attribute($this->env$this->source,             // line 59
  364. $context["item"], "department", [], "any"falsefalsefalse59)) ? (twig_sprintf("campussuite.cms.container.%s.manage"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "department", [], "any"falsefalsefalse59), "type", [], "any"falsefalsefalse59))) : (null)), => "campussuite.cms.module.manage"=> "campussuite.cms.modules.page.manage"]), [=>             // line 63
  365. $context["item"], => twig_get_attribute($this->env$this->source$context["item"], "department", [], "any"falsefalsefalse63)]);
  366.             // line 65
  367.             echo "                            <tr>
  368.                                 ";
  369.             // line 66
  370.             $this->loadTemplate("@ui2022/table__item__cell--status.html.twig""@App/dashboard/websites/content/_list_legacy.html.twig"66)->display(twig_array_merge(twig_array_merge($context, ["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 67
  371. $context["item"], "data", [], "any"falsefalsefalse67), "ui", [], "any"falsefalsefalse67), "link" => ((            // line 68
  372. (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'68$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'68$this->source); })()), "withQueryParameter", [=> "_mimic"=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'68$this->source); })()), "user", [], "any"falsefalsefalse68), "uid", [], "any"falsefalsefalse68)], "method"falsefalsefalse68)) : (null)), "actions" => [], "status" => (( !twig_get_attribute($this->env$this->source,             // line 70
  373. $context["item"], "placeholder", [], "any"falsefalsefalse70)) ? ("sent") : ("draft")), "subtext" => (( !twig_get_attribute($this->env$this->source,             // line 71
  374. $context["item"], "placeholder", [], "any"falsefalsefalse71)) ? ("Published") : ("Draft")), "subicon" => ((            // line 72
  375. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'72$this->source); })())) ? ("icon-ui-board") : ("icon-folder")), "subinfo" => (( !            // line 73
  376. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'73$this->source); })())) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "container", [], "any"falsefalsefalse73), "name", [], "any"falsefalsefalse73)) : ((((twig_get_attribute($this->env$this->source,             // line 74
  377. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'74$this->source); })()), "department", [], "any"falsefalsefalse74) && (twig_get_attribute($this->env$this->source, (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'74$this->source); })()), "department", [], "any"falsefalsefalse74) === twig_get_attribute($this->env$this->source$context["item"], "container", [], "any"falsefalsefalse74)))) ? (twig_get_attribute($this->env$this->source,             // line 75
  378. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'75$this->source); })()), "name", [], "any"falsefalsefalse75)) : (twig_sprintf("%s > %s"twig_get_attribute($this->env$this->source,             // line 77
  379. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'77$this->source); })()), "name", [], "any"falsefalsefalse77), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 78
  380. $context["item"], "container", [], "any"falsefalsefalse78), "name", [], "any"falsefalsefalse78)))))), "actions" => twig_array_filter($this->env, [=> ((            // line 82
  381. (isset($context["isGranted"]) || array_key_exists("isGranted"$context) ? $context["isGranted"] : (function () { throw new RuntimeError('Variable "isGranted" does not exist.'82$this->source); })())) ? (["text" => "More""dropdown" => ["items" => [=> ["text" => "Delete""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_sprintf(twig_get_attribute($this->env$this->source,             // line 88
  382. (isset($context["paths"]) || array_key_exists("paths"$context) ? $context["paths"] : (function () { throw new RuntimeError('Variable "paths" does not exist.'88$this->source); })()), "delete", [], "any"falsefalsefalse88), twig_get_attribute($this->env$this->source$context["item"], "discr", [], "any"falsefalsefalse88)), ["object" => twig_get_attribute($this->env$this->source,             // line 89
  383. $context["item"], "id", [], "any"falsefalsefalse89)]), "modal" => "feed-entry-modal2"]]]]) : (null)), => ((            // line 96
  384. (isset($context["isGranted"]) || array_key_exists("isGranted"$context) ? $context["isGranted"] : (function () { throw new RuntimeError('Variable "isGranted" does not exist.'96$this->source); })())) ? (["text" => "Edit""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_sprintf(twig_get_attribute($this->env$this->source,             // line 98
  385. (isset($context["paths"]) || array_key_exists("paths"$context) ? $context["paths"] : (function () { throw new RuntimeError('Variable "paths" does not exist.'98$this->source); })()), "update", [], "any"falsefalsefalse98), twig_get_attribute($this->env$this->source$context["item"], "discr", [], "any"falsefalsefalse98)), ["object" => twig_get_attribute($this->env$this->source,             // line 99
  386. $context["item"], "id", [], "any"falsefalsefalse99)])]) : (null))],             // line 102
  387. function ($__v__) use ($context$macros) { $context["v"] = $__v__; return  !twig_test_empty((isset($context["v"]) || array_key_exists("v"$context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.'102$this->source); })())); })]), ['_args' => twig_to_array(["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 67
  388. $context["item"], "data", [], "any"falsefalsefalse67), "ui", [], "any"falsefalsefalse67), "link" => ((            // line 68
  389. (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'68$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'68$this->source); })()), "withQueryParameter", [=> "_mimic"=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'68$this->source); })()), "user", [], "any"falsefalsefalse68), "uid", [], "any"falsefalsefalse68)], "method"falsefalsefalse68)) : (null)), "actions" => [], "status" => (( !twig_get_attribute($this->env$this->source,             // line 70
  390. $context["item"], "placeholder", [], "any"falsefalsefalse70)) ? ("sent") : ("draft")), "subtext" => (( !twig_get_attribute($this->env$this->source,             // line 71
  391. $context["item"], "placeholder", [], "any"falsefalsefalse71)) ? ("Published") : ("Draft")), "subicon" => ((            // line 72
  392. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'72$this->source); })())) ? ("icon-ui-board") : ("icon-folder")), "subinfo" => (( !            // line 73
  393. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'73$this->source); })())) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "container", [], "any"falsefalsefalse73), "name", [], "any"falsefalsefalse73)) : ((((twig_get_attribute($this->env$this->source,             // line 74
  394. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'74$this->source); })()), "department", [], "any"falsefalsefalse74) && (twig_get_attribute($this->env$this->source, (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'74$this->source); })()), "department", [], "any"falsefalsefalse74) === twig_get_attribute($this->env$this->source$context["item"], "container", [], "any"falsefalsefalse74)))) ? (twig_get_attribute($this->env$this->source,             // line 75
  395. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'75$this->source); })()), "name", [], "any"falsefalsefalse75)) : (twig_sprintf("%s > %s"twig_get_attribute($this->env$this->source,             // line 77
  396. (isset($context["school"]) || array_key_exists("school"$context) ? $context["school"] : (function () { throw new RuntimeError('Variable "school" does not exist.'77$this->source); })()), "name", [], "any"falsefalsefalse77), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 78
  397. $context["item"], "container", [], "any"falsefalsefalse78), "name", [], "any"falsefalsefalse78)))))), "actions" => twig_array_filter($this->env, [=> ((            // line 82
  398. (isset($context["isGranted"]) || array_key_exists("isGranted"$context) ? $context["isGranted"] : (function () { throw new RuntimeError('Variable "isGranted" does not exist.'82$this->source); })())) ? (["text" => "More""dropdown" => ["items" => [=> ["text" => "Delete""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_sprintf(twig_get_attribute($this->env$this->source,             // line 88
  399. (isset($context["paths"]) || array_key_exists("paths"$context) ? $context["paths"] : (function () { throw new RuntimeError('Variable "paths" does not exist.'88$this->source); })()), "delete", [], "any"falsefalsefalse88), twig_get_attribute($this->env$this->source$context["item"], "discr", [], "any"falsefalsefalse88)), ["object" => twig_get_attribute($this->env$this->source,             // line 89
  400. $context["item"], "id", [], "any"falsefalsefalse89)]), "modal" => "feed-entry-modal2"]]]]) : (null)), => ((            // line 96
  401. (isset($context["isGranted"]) || array_key_exists("isGranted"$context) ? $context["isGranted"] : (function () { throw new RuntimeError('Variable "isGranted" does not exist.'96$this->source); })())) ? (["text" => "Edit""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_sprintf(twig_get_attribute($this->env$this->source,             // line 98
  402. (isset($context["paths"]) || array_key_exists("paths"$context) ? $context["paths"] : (function () { throw new RuntimeError('Variable "paths" does not exist.'98$this->source); })()), "update", [], "any"falsefalsefalse98), twig_get_attribute($this->env$this->source$context["item"], "discr", [], "any"falsefalsefalse98)), ["object" => twig_get_attribute($this->env$this->source,             // line 99
  403. $context["item"], "id", [], "any"falsefalsefalse99)])]) : (null))],             // line 102
  404. function ($__v__) use ($context$macros) { $context["v"] = $__v__; return  !twig_test_empty((isset($context["v"]) || array_key_exists("v"$context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.'102$this->source); })())); })])]));
  405.             // line 104
  406.             echo "                                <td>
  407.                                     ";
  408.             // line 105
  409.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_sprintf("app.content.types.%s"twig_get_attribute($this->env$this->source$context["item"], "discr", [], "any"falsefalsefalse105))), "html"nulltrue);
  410.             echo "
  411.                                 </td>
  412.                                 <td>
  413.                                     ";
  414.             // line 108
  415.             echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_relativeDate(twig_get_attribute($this->env$this->source$context["item"], "timestampedAt", [], "any"falsefalsefalse108)), "html"nulltrue);
  416.             echo "
  417.                                     ";
  418.             // line 109
  419.             if (twig_get_attribute($this->env$this->source$context["item"], "blamedBy", [], "any"falsefalsefalse109)) {
  420.                 // line 110
  421.                 echo "                                        <div class=\"font-12\">";
  422.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "blamedBy", [], "any"falsefalsefalse110), "displayName", [], "any"falsefalsefalse110), "html"nulltrue);
  423.                 echo "</div>
  424.                                     ";
  425.             }
  426.             // line 112
  427.             echo "                                </td>
  428.                             </tr>
  429.                         ";
  430.             ++$context['loop']['index0'];
  431.             ++$context['loop']['index'];
  432.             $context['loop']['first'] = false;
  433.             if (isset($context['loop']['length'])) {
  434.                 --$context['loop']['revindex0'];
  435.                 --$context['loop']['revindex'];
  436.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  437.             }
  438.         }
  439.         $_parent $context['_parent'];
  440.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  441.         $context array_intersect_key($context$_parent) + $_parent;
  442.         // line 115
  443.         echo "                    ";
  444.         
  445.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  446.         
  447.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  448.     }
  449.     public function getTemplateName()
  450.     {
  451.         return "@App/dashboard/websites/content/_list_legacy.html.twig";
  452.     }
  453.     public function isTraitable()
  454.     {
  455.         return false;
  456.     }
  457.     public function getDebugInfo()
  458.     {
  459.         return array (  488 => 115,  472 => 112,  466 => 110,  464 => 109,  460 => 108,  454 => 105,  451 => 104,  449 => 102,  448 => 99,  447 => 98,  446 => 96,  445 => 89,  444 => 88,  443 => 82,  442 => 78,  441 => 77,  440 => 75,  439 => 74,  438 => 73,  437 => 72,  436 => 71,  435 => 70,  434 => 68,  433 => 67,  432 => 102,  431 => 99,  430 => 98,  429 => 96,  428 => 89,  427 => 88,  426 => 82,  425 => 78,  424 => 77,  423 => 75,  422 => 74,  421 => 73,  420 => 72,  419 => 71,  418 => 70,  417 => 68,  416 => 67,  415 => 66,  412 => 65,  410 => 63,  409 => 59,  408 => 57,  405 => 56,  402 => 55,  399 => 54,  381 => 53,  371 => 52,  348 => 47,  155 => 134,  153 => 129,  148 => 128,  138 => 127,  124 => 121,  121 => 120,  118 => 119,  116 => 118,  113 => 117,  111 => 50,  110 => 49,  109 => 48,  108 => 50,  107 => 49,  106 => 48,  104 => 47,  102 => 32,  97 => 31,  95 => 29,  94 => 28,  88 => 24,  85 => 18,  82 => 17,  80 => 11,  78 => 9,  76 => 8,  72 => 6,  62 => 5,  51 => 1,  49 => 3,  36 => 1,);
  460.     }
  461.     public function getSourceContext()
  462.     {
  463.         return new Source("{% extends '@App/dashboard/websites/base.html.twig' %}
  464. {% do dom_title_section('Dashboard') %}
  465. {% block content %}
  466.     <div class=\"row mb-4\">
  467.         <div class=\"col text-right\">
  468.             {% if sites|length %}
  469.                 {% include '@ui2022/button--a.html.twig' with {
  470.                     text: 'View Site',
  471.                     link: web_url_catchall(sites[0]).withQueryParameter('_mimic', app.user.uid),
  472.                     styles: 'gray',
  473.                     attr: {
  474.                         class: 'mr-3',
  475.                     },
  476.                 } %}
  477.             {% endif %}
  478.             {% include '@ui2022/button--a.html.twig' with {
  479.                 text: '+ Add',
  480.                 link: path('app.app.dashboard.websites.content.add'),
  481.                 styles: 'primary',
  482.                 modal: 'modal__add',
  483.             } %}
  484.         </div>
  485.     </div>
  486.     <div class=\"row\">
  487.         <div class=\"col\">
  488.             {% include '@ui2022/table-filter.html.twig' with {
  489.                 form: form,
  490.             } %}
  491.             <div id=\"{{ form.vars.id }}__results\">
  492.                 {% set headers = [
  493.                     {
  494.                         title: 'Name',
  495.                         sort: 'name',
  496.                     },
  497.                     {
  498.                         title: 'Type',
  499.                         spacing: 15,
  500.                     },
  501.                     {
  502.                         title: 'Last Modified',
  503.                         spacing: 25,
  504.                         sort: 'timestamp',
  505.                     },
  506.                 ] %}
  507.                 {% embed '@ui2022/table--search.html.twig' with {
  508.                     form: form,
  509.                     headers: headers,
  510.                     items: items,
  511.                 } %}
  512.                     {% block items %}
  513.                         {% for item in items %}
  514.                             {% set school = item.container|schoolify %}
  515.                             {% set link = web_url_view(item) %}
  516.                             {% set isGranted = is_granted(
  517.                                 attributes_expression([
  518.                                     item.department ? 'campussuite.cms.container.%s.manage'|format(item.department.type) : null,
  519.                                     'campussuite.cms.module.manage',
  520.                                     'campussuite.cms.modules.page.manage',
  521.                                 ]),
  522.                                 [item, item.department],
  523.                             ) %}
  524.                             <tr>
  525.                                 {% include '@ui2022/table__item__cell--status.html.twig' with {
  526.                                     title: item.data.ui,
  527.                                     link: link ? link.withQueryParameter('_mimic', app.user.uid) : null,
  528.                                     actions: [],
  529.                                     status: (not item.placeholder) ? 'sent' : 'draft',
  530.                                     subtext: (not item.placeholder) ? 'Published' : 'Draft',
  531.                                     subicon: school ? 'icon-ui-board' : 'icon-folder',
  532.                                     subinfo: (not school) ? item.container.name : (
  533.                                         (school.department and school.department is same as (item.container))
  534.                                             ? school.name
  535.                                             : '%s > %s'|format(
  536.                                                 school.name,
  537.                                                 item.container.name
  538.                                             )
  539.                                     ),
  540.                                     actions: [
  541.                                         isGranted ? {
  542.                                             text: 'More',
  543.                                             dropdown: {
  544.                                                 items: [
  545.                                                     {
  546.                                                         text: 'Delete',
  547.                                                         link: path(paths.delete|format(item.discr), {
  548.                                                             object: item.id,
  549.                                                         }),
  550.                                                         modal: 'feed-entry-modal2',
  551.                                                     },
  552.                                                 ],
  553.                                             },
  554.                                         } : null,
  555.                                         isGranted ? {
  556.                                             text: 'Edit',
  557.                                             link: path(paths.update|format(item.discr), {
  558.                                                 object: item.id,
  559.                                             }),
  560.                                         } : null,
  561.                                     ]|filter((v) => v is not empty),
  562.                                 } %}
  563.                                 <td>
  564.                                     {{ 'app.content.types.%s'|format(item.discr)|trans }}
  565.                                 </td>
  566.                                 <td>
  567.                                     {{ item.timestampedAt|ui_relativeDate }}
  568.                                     {% if item.blamedBy %}
  569.                                         <div class=\"font-12\">{{ item.blamedBy.displayName }}</div>
  570.                                     {% endif %}
  571.                                 </td>
  572.                             </tr>
  573.                         {% endfor %}
  574.                     {% endblock %}
  575.                 {% endembed %}
  576.                 {% if items is not empty and pagination is defined %}
  577.                     {% include '@ui2022/pagination.html.twig' with pagination %}
  578.                 {% endif %}
  579.             </div>
  580.         </div>
  581.     </div>
  582. {% endblock %}
  583. {% block modals %}
  584.     {{ parent() }}
  585.     {% include '@ui2022/modal.html.twig' with {
  586.         attr: {
  587.             id: 'feed-entry-modal2',
  588.         },
  589.     } %}
  590.     {% include '@ui2022/modal.html.twig' with {
  591.         dialog_styles: 'scrollable centered',
  592.         attr: {
  593.             id: 'modal__add',
  594.             class: 'modal-ajax',
  595.         },
  596.     } %}
  597. {% endblock %}
  598. ""@App/dashboard/websites/content/_list_legacy.html.twig""/var/www/campussuite/src/App/Resources/views/dashboard/websites/content/_list_legacy.html.twig");
  599.     }
  600. }