var/cache/dev/twig/bd/bd4883120f86b0b58ddb6259208fa6076883d7ec5c0557dc7713596b5bf6a444.php line 33

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. /* CRUD/list__environment__list_outer_rows_list.html.twig */
  14. class __TwigTemplate_11df0e13365aa24b6fd56e7e4371e99de9d5fc7ebcea1cf7f06d4ed9394d8a98 extends 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CRUD/list__environment__list_outer_rows_list.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CRUD/list__environment__list_outer_rows_list.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'1$this->source); })()), "datagrid", [], "any"falsefalsefalse1), "results", [], "any"falsefalsefalse1));
  36.         $context['loop'] = [
  37.           'parent' => $context['_parent'],
  38.           'index0' => 0,
  39.           'index'  => 1,
  40.           'first'  => true,
  41.         ];
  42.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  43.             $length count($context['_seq']);
  44.             $context['loop']['revindex0'] = $length 1;
  45.             $context['loop']['revindex'] = $length;
  46.             $context['loop']['length'] = $length;
  47.             $context['loop']['last'] = === $length;
  48.         }
  49.         foreach ($context['_seq'] as $context["_key"] => $context["object"]) {
  50.             // line 2
  51.             echo "\t";
  52.             $context["style"] = "";
  53.             // line 3
  54.             echo "\t";
  55.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["object"], "type", [], "any"falsefalsefalse3), "name", [], "any"falsefalsefalse3), "prod"))) {
  56.                 // line 4
  57.                 echo "\t\t";
  58.                 $context["style"] = "background-color:#ffbcba;color:#000;";
  59.                 // line 5
  60.                 echo "\t";
  61.             }
  62.             // line 6
  63.             echo "\t";
  64.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["object"], "debugmode", [], "any"falsefalsefalse6), true))) {
  65.                 // line 7
  66.                 echo "\t\t";
  67.                 $context["style"] = "background-color:orange;color:#000;";
  68.                 echo "\t
  69. \t";
  70.             }
  71.             // line 9
  72.             echo "    <tr style=\"";
  73.             echo twig_escape_filter($this->env, (isset($context["style"]) || array_key_exists("style"$context) ? $context["style"] : (function () { throw new RuntimeError('Variable "style" does not exist.'9$this->source); })()), "html"nulltrue);
  74.             echo "\" >
  75.         ";
  76.             // line 10
  77.             $this->loadTemplate($this->env->getRuntime('Sonata\AdminBundle\Twig\TemplateRegistryRuntime')->getAdminTemplate("inner_list_row"twig_get_attribute($this->env$this->source, (isset($context["admin"]) || array_key_exists("admin"$context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.'10$this->source); })()), "code", [], "any"falsefalsefalse10)), "CRUD/list__environment__list_outer_rows_list.html.twig"10)->display($context);
  78.             // line 11
  79.             echo "    </tr>
  80. ";
  81.             ++$context['loop']['index0'];
  82.             ++$context['loop']['index'];
  83.             $context['loop']['first'] = false;
  84.             if (isset($context['loop']['length'])) {
  85.                 --$context['loop']['revindex0'];
  86.                 --$context['loop']['revindex'];
  87.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  88.             }
  89.         }
  90.         $_parent $context['_parent'];
  91.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['object'], $context['_parent'], $context['loop']);
  92.         $context array_intersect_key($context$_parent) + $_parent;
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.         
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  97.     }
  98.     public function getTemplateName()
  99.     {
  100.         return "CRUD/list__environment__list_outer_rows_list.html.twig";
  101.     }
  102.     public function isTraitable()
  103.     {
  104.         return false;
  105.     }
  106.     public function getDebugInfo()
  107.     {
  108.         return array (  88 => 11,  86 => 10,  81 => 9,  75 => 7,  72 => 6,  69 => 5,  66 => 4,  63 => 3,  60 => 2,  43 => 1,);
  109.     }
  110.     public function getSourceContext()
  111.     {
  112.         return new Source("{% for object in admin.datagrid.results %}
  113. \t{% set style = \"\" %}
  114. \t{% if object.type.name == \"prod\" %}
  115. \t\t{% set style = \"background-color:#ffbcba;color:#000;\" %}
  116. \t{% endif %}
  117. \t{% if object.debugmode == true %}
  118. \t\t{% set style = \"background-color:orange;color:#000;\" %}\t
  119. \t{% endif %}
  120.     <tr style=\"{{ style }}\" >
  121.         {% include get_admin_template('inner_list_row', admin.code) %}
  122.     </tr>
  123. {% endfor %}
  124. ""CRUD/list__environment__list_outer_rows_list.html.twig""/var/www/test-dashboard.talkabot.net/public_html/dashboard/templates/CRUD/list__environment__list_outer_rows_list.html.twig");
  125.     }
  126. }