var/cache/dev/twig/cd/cd5c27a76b5e751fec64e25acbe53e5a.php line 41

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* admin/error_log/error_logs.html.twig */
  15. class __TwigTemplate_24cca5266a312ade8b0c0f9233f03f53 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.             'addJs' => [$this'block_addJs'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "admin/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/error_log/error_logs.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/error_log/error_logs.html.twig"));
  41.         $this->parent $this->loadTemplate("admin/base.html.twig""admin/error_log/error_logs.html.twig"1);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         yield "Лог ошибок";
  57.         
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.         return; yield '';
  62.     }
  63.     // line 5
  64.     public function block_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  71.         // line 6
  72.         yield "    <h1 class=\"h3 mb-2 text-gray-800\">Лог ошибок</h1>
  73.     <div class=\"card shadow mb-4 mt-4\">
  74.         <div class=\"card-header py-3\">
  75.             <h6 class=\"m-0 font-weight-bold text-primary\">Лог ошибок</h6>
  76.         </div>
  77.         <div class=\"card-body\">
  78.             <div class=\"table-responsive\">
  79.                 <table class=\"table table-bordered\" id=\"error-logs-data-table\">
  80.                     <thead>
  81.                     <tr>
  82.                         <th data-table-type=\"num\">Номер п/п</th>
  83.                         <th data-table-type=\"date-d-m-Y-asc\">Дата</th>
  84.                         <th>Текст</th>
  85.                         <th>Пользователь</th>
  86.                         <th>Трассировка</th>
  87.                     </tr>
  88.                     </thead>
  89.                     <tbody>
  90.                     ";
  91.         // line 25
  92.         $context['_parent'] = $context;
  93.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'25$this->source); })()));
  94.         $context['loop'] = [
  95.           'parent' => $context['_parent'],
  96.           'index0' => 0,
  97.           'index'  => 1,
  98.           'first'  => true,
  99.         ];
  100.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  101.             $length count($context['_seq']);
  102.             $context['loop']['revindex0'] = $length 1;
  103.             $context['loop']['revindex'] = $length;
  104.             $context['loop']['length'] = $length;
  105.             $context['loop']['last'] = === $length;
  106.         }
  107.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  108.             // line 26
  109.             yield "                        <tr>
  110.                             <td>";
  111.             // line 27
  112.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse27), "html"nulltrue);
  113.             yield "</td>
  114.                             <td>";
  115.             // line 28
  116.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["item"], "createdAt", [], "any"falsefalsefalse28), "d.m.Y H:i:s"), "html"nulltrue);
  117.             yield "</td>
  118.                             <td>";
  119.             // line 29
  120.             ((CoreExtension::getAttribute($this->env$this->source$context["item"], "text", [], "any"falsefalsefalse29)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "text", [], "any"falsefalsefalse29), "html"nulltrue)) : (yield "–"));
  121.             yield "</td>
  122.                             <td>";
  123.             // line 30
  124.             ((CoreExtension::getAttribute($this->env$this->source$context["item"], "user", [], "any"falsefalsefalse30)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["item"], "user", [], "any"falsefalsefalse30), "name", [], "any"falsefalsefalse30), "html"nulltrue)) : (yield "–"));
  125.             yield "</td>
  126.                             <td>";
  127.             // line 31
  128.             ((CoreExtension::getAttribute($this->env$this->source$context["item"], "trace", [], "any"falsefalsefalse31)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "trace", [], "any"falsefalsefalse31), "html"nulltrue)) : (yield "–"));
  129.             yield "</td>
  130.                         </tr>
  131.                     ";
  132.             ++$context['loop']['index0'];
  133.             ++$context['loop']['index'];
  134.             $context['loop']['first'] = false;
  135.             if (isset($context['loop']['length'])) {
  136.                 --$context['loop']['revindex0'];
  137.                 --$context['loop']['revindex'];
  138.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  139.             }
  140.         }
  141.         $_parent $context['_parent'];
  142.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  143.         $context array_intersect_key($context$_parent) + $_parent;
  144.         // line 34
  145.         yield "                    </tbody>
  146.                 </table>
  147.             </div>
  148.         </div>
  149.     </div>
  150. ";
  151.         
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153.         
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155.         return; yield '';
  156.     }
  157.     // line 41
  158.     public function block_addJs($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addJs"));
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addJs"));
  165.         // line 42
  166.         yield "    <script>
  167.         let errorLogsDataTableOptions = {
  168.             drawRowNumbersForColIndex: 0,
  169.         };
  170.         let table = new CustomDataTable('#error-logs-data-table', errorLogsDataTableOptions);
  171.         table.initDataTable();
  172.     </script>
  173. ";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.         return; yield '';
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function getTemplateName()
  184.     {
  185.         return "admin/error_log/error_logs.html.twig";
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function isTraitable()
  191.     {
  192.         return false;
  193.     }
  194.     /**
  195.      * @codeCoverageIgnore
  196.      */
  197.     public function getDebugInfo()
  198.     {
  199.         return array (  191 => 42,  181 => 41,  165 => 34,  148 => 31,  144 => 30,  140 => 29,  136 => 28,  132 => 27,  129 => 26,  112 => 25,  91 => 6,  81 => 5,  61 => 3,  38 => 1,);
  200.     }
  201.     public function getSourceContext()
  202.     {
  203.         return new Source("{% extends 'admin/base.html.twig' %}
  204. {% block title %}Лог ошибок{% endblock %}
  205. {% block content %}
  206.     <h1 class=\"h3 mb-2 text-gray-800\">Лог ошибок</h1>
  207.     <div class=\"card shadow mb-4 mt-4\">
  208.         <div class=\"card-header py-3\">
  209.             <h6 class=\"m-0 font-weight-bold text-primary\">Лог ошибок</h6>
  210.         </div>
  211.         <div class=\"card-body\">
  212.             <div class=\"table-responsive\">
  213.                 <table class=\"table table-bordered\" id=\"error-logs-data-table\">
  214.                     <thead>
  215.                     <tr>
  216.                         <th data-table-type=\"num\">Номер п/п</th>
  217.                         <th data-table-type=\"date-d-m-Y-asc\">Дата</th>
  218.                         <th>Текст</th>
  219.                         <th>Пользователь</th>
  220.                         <th>Трассировка</th>
  221.                     </tr>
  222.                     </thead>
  223.                     <tbody>
  224.                     {% for item in items %}
  225.                         <tr>
  226.                             <td>{{ loop.index }}</td>
  227.                             <td>{{ item.createdAt|date('d.m.Y H:i:s') }}</td>
  228.                             <td>{{ item.text ?: '–' }}</td>
  229.                             <td>{{ item.user ? item.user.name : '–' }}</td>
  230.                             <td>{{ item.trace ?: '–' }}</td>
  231.                         </tr>
  232.                     {% endfor %}
  233.                     </tbody>
  234.                 </table>
  235.             </div>
  236.         </div>
  237.     </div>
  238. {% endblock %}
  239. {% block addJs %}
  240.     <script>
  241.         let errorLogsDataTableOptions = {
  242.             drawRowNumbersForColIndex: 0,
  243.         };
  244.         let table = new CustomDataTable('#error-logs-data-table', errorLogsDataTableOptions);
  245.         table.initDataTable();
  246.     </script>
  247. {% endblock %}
  248. ""admin/error_log/error_logs.html.twig""/home/sariato/www/dev.centr.sariato.ru/templates/admin/error_log/error_logs.html.twig");
  249.     }
  250. }