123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?php
-
- /* WebProfilerBundle:Collector:logger.html.twig */
- class __TwigTemplate_78b63be38f49c515f19fbc2326d241dd extends Twig_Template
- {
- protected $parent;
-
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
-
- $this->parent = array();
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- );
- }
-
- public function getParent(array $context)
- {
- $parent = "WebProfilerBundle:Profiler:layout.html.twig";
- if ($parent instanceof Twig_Template) {
- $name = $parent->getTemplateName();
- $this->parent[$name] = $parent;
- $parent = $name;
- } elseif (!isset($this->parent[$parent])) {
- $this->parent[$parent] = $this->env->loadTemplate($parent);
- }
-
- return $this->parent[$parent];
- }
-
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
- }
-
- // line 3
- public function block_toolbar($context, array $blocks = array())
- {
- // line 4
- echo " ";
- if ($this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false)) {
- // line 5
- echo " ";
- ob_start();
- // line 6
- echo " <img width=\"15\" height=\"28\" alt=\"Logs\" style=\"border-width: 0; vertical-align: middle; margin-right: 5px;\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAcCAYAAAC+lOV/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQVJREFUeNpi/P//PwO5gImBAjBwmlm8vLyOf/v2zYJYDVxcXCe2bdvmeu7cuS+M9vb2ZIWYoKDgUrKcvWLFipWfP38OYcEmeeDAgQtA6gMQCzg4OBigy0tISHxhYmJiYMFh+EIgBhlgAMXo4DEwffzH5ewLwAA5ADUAG/g7lBMJNkFgCO8fGJsJxTNezUTEM15nE4rnAQ4wkjVraWm9BlK/wc62tLR8fOXKFZmmpqYHhoaGT4Fif/Do/Q7Ep/bt28fz+/dvDkZgKdI4ZcqUmMOHD0t8+vSJi1gXKCgoPGQE5ixTIBuExUjwKsiSpyDNnECGOBCLAjEnkeEA8vMbxqFZ6AMEGADoe2NON2x5yQAAAABJRU5ErkJggg==\"/>
- ";
- $context['icon'] = new Twig_Markup(ob_get_clean());
- // line 8
- echo " ";
- ob_start();
- // line 9
- echo " <span>";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false), "html");
- echo "</span>
- ";
- $context['text'] = new Twig_Markup(ob_get_clean());
- // line 11
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
- // line 12
- echo " ";
- }
- }
-
- // line 15
- public function block_menu($context, array $blocks = array())
- {
- // line 16
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"";
- // line 17
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/logger.png"), "html");
- echo "\" alt=\"Logger\" /></span>
- <strong>Logs</strong>
- ";
- // line 19
- if ($this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false)) {
- // line 20
- echo " <span class=\"count\">
- <span>";
- // line 21
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false), "html");
- echo "</span>
- </span>
- ";
- }
- // line 24
- echo "</span>
- ";
- }
-
- // line 27
- public function block_panel($context, array $blocks = array())
- {
- // line 28
- echo " <h2>Logs</h2>
-
- ";
- // line 30
- if ($this->getAttribute($this->getContext($context, 'collector'), "logs", array(), "any", false)) {
- // line 31
- echo " <ul class=\"alt\">
- ";
- // line 32
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "logs", array(), "any", false));
- $context['loop'] = array(
- '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['log']) {
- // line 33
- echo " <li class=\"";
- echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, 'loop'), "index", array(), "any", false)), "html");
- if ((("ERR" == $this->getAttribute($this->getContext($context, 'log'), "priorityName", array(), "any", false)) || ("ERROR" == $this->getAttribute($this->getContext($context, 'log'), "priorityName", array(), "any", false)))) {
- echo " error";
- }
- echo "\">
- ";
- // line 34
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'log'), "message", array(), "any", false), "html");
- echo "
- ";
- // line 35
- if (($this->getAttribute(((array_key_exists("log", $context)) ? (twig_default_filter($this->getContext($context, 'log'))) : ("")), "context", array(), "any", true) && (!twig_test_empty($this->getAttribute($this->getContext($context, 'log'), "context", array(), "any", false))))) {
- // line 36
- echo " <br />
- <small>
- <strong>Context</strong>: ";
- // line 38
- echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, 'log'), "context", array(), "any", false)), "html");
- echo "
- </small>
- ";
- }
- // line 41
- echo " </li>
- ";
- ++$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['log'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 43
- echo " </ul>
- ";
- } else {
- // line 45
- echo " <p>
- <em>No logs available.</em>
- </p>
- ";
- }
- }
-
- public function getTemplateName()
- {
- return "WebProfilerBundle:Collector:logger.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|