/app/cache/dev/twig/fa/29/990ac3baaee2d54c9c153aba2551.php
PHP | 230 lines | 181 code | 13 blank | 36 comment | 10 complexity | 231a9b5b925a28e5232b4baf03f0ee4a MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
- <?php
- /* WebProfilerBundle:Collector:logger.html.twig */
- class __TwigTemplate_fa29990ac3baaee2d54c9c153aba2551 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = $this->env->loadTemplate("WebProfilerBundle:Profiler:layout.html.twig");
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- );
- }
- protected function doGetParent(array $context)
- {
- return "WebProfilerBundle:Profiler:layout.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- $this->parent->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")) {
- // line 5
- echo " ";
- ob_start();
- // line 6
- echo " <img width=\"15\" height=\"28\" alt=\"Logs\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAcCAYAAABoMT8aAAAA4klEQVQ4y2P4//8/AyWYYXgYwOPp6Xnc3t7+P7EYpB6k7+zZs2ADNEjRjIwDAgKWgAywIUfz8+fPVzg7O/8AGeCATQEQnAfi/SAah/wcV1dXvAYUgORANA75ehcXl+/4DHAABRIe+ZrhbgAhTHsDiEgHBA0glA6GfSDiw5mZma+A+sphBlhVVFQ88vHx+Xfu3Ll7QP5haOjjwtuAuGHv3r3NIMNABqh8+/atsaur666vr+9XUlwSHx//AGQANxCbAnEWyGQicRMQ9wBxIQM0qjiBWAFqkB00/glhayBWHwb1AgB38EJsUtxtWwAAAABJRU5ErkJggg==\"/>
- <span class=\"sf-toolbar-status sf-toolbar-status-yellow\">";
- // line 7
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
- echo "</span>
- ";
- $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 9
- echo " ";
- ob_start();
- // line 10
- echo " <div class=\"sf-toolbar-info-piece\">
- <b>Exception</b>
- <span class=\"sf-toolbar-status sf-toolbar-status-yellow\">";
- // line 12
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
- echo "</span>
- </div>
- ";
- $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 15
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, "profiler_url"))));
- // line 16
- echo " ";
- }
- }
- // line 19
- public function block_menu($context, array $blocks = array())
- {
- // line 20
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"";
- // line 21
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/logger.png"), "html", null, true);
- echo "\" alt=\"Logger\" /></span>
- <strong>Logs</strong>
- ";
- // line 23
- if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
- // line 24
- echo " <span class=\"count\">
- <span>";
- // line 25
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
- echo "</span>
- </span>
- ";
- }
- // line 28
- echo "</span>
- ";
- }
- // line 31
- public function block_panel($context, array $blocks = array())
- {
- // line 32
- echo " <h2>Logs</h2>
- ";
- // line 34
- $context["priority"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
- // line 35
- echo "
- <table>
- <tr>
- <th>Filter</th>
- <td>
- <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">
- <input type=\"hidden\" name=\"panel\" value=\"logger\" />
- <label for=\"priority\">Priority</label>
- <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">
- ";
- // line 44
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable(array(100 => "DEBUG", 200 => "INFO", 250 => "NOTICE", 300 => "WARNING", 400 => "ERROR", 500 => "CRITICAL", 550 => "ALERT", 600 => "EMERGENCY"));
- foreach ($context['_seq'] as $context["value"] => $context["text"]) {
- // line 45
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
- echo "\"";
- echo ((($this->getContext($context, "value") == $this->getContext($context, "priority"))) ? (" selected") : (""));
- echo ">";
- echo twig_escape_filter($this->env, $this->getContext($context, "text"), "html", null, true);
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 47
- echo " </select>
- <noscript>
- <input type=\"submit\" value=\"refresh\" />
- </noscript>
- </form>
- </td>
- </tr>
- </table>
- ";
- // line 56
- if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
- // line 57
- echo " <ul class=\"alt\">
- ";
- // line 58
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
- $context['_iterated'] = false;
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
- if (($this->getAttribute($this->getContext($context, "log"), "priority") >= $this->getContext($context, "priority"))) {
- // line 59
- echo " <li class=\"";
- echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
- if (($this->getAttribute($this->getContext($context, "log"), "priority") >= 400)) {
- echo " error";
- } elseif (($this->getAttribute($this->getContext($context, "log"), "priority") >= 300)) {
- echo " warning";
- }
- echo "\">
- ";
- // line 60
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "priorityName"), "html", null, true);
- echo " - ";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
- echo "
- ";
- // line 61
- if (($this->getAttribute((isset($context["log"]) ? $context["log"] : null), "context", array(), "any", true, true) && (!twig_test_empty($this->getAttribute($this->getContext($context, "log"), "context"))))) {
- // line 62
- echo " <br />
- <small>
- <strong>Context</strong>: ";
- // line 64
- echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, "log"), "context")), "html", null, true);
- echo "
- </small>
- ";
- }
- // line 67
- echo " </li>
- ";
- $context['_iterated'] = true;
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- }
- }
- if (!$context['_iterated']) {
- // line 69
- echo " <li><em>No logs available for this priority.</em></li>
- ";
- }
- $_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 71
- echo " </ul>
- ";
- } else {
- // line 73
- echo " <p>
- <em>No logs available.</em>
- </p>
- ";
- }
- }
- public function getTemplateName()
- {
- return "WebProfilerBundle:Collector:logger.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 207 => 73, 174 => 61, 168 => 60, 88 => 28, 54 => 13, 186 => 67, 172 => 67, 165 => 64, 162 => 63, 132 => 54, 354 => 163, 345 => 160, 341 => 159, 338 => 158, 333 => 157, 331 => 156, 323 => 150, 321 => 149, 314 => 145, 307 => 141, 300 => 137, 286 => 129, 279 => 125, 272 => 121, 257 => 109, 250 => 105, 236 => 97, 226 => 89, 215 => 83, 212 => 82, 204 => 78, 201 => 77, 190 => 72, 180 => 64, 146 => 58, 133 => 47, 67 => 20, 111 => 40, 51 => 11, 38 => 6, 138 => 49, 95 => 45, 75 => 24, 47 => 13, 21 => 1, 84 => 29, 219 => 176, 126 => 45, 108 => 42, 60 => 16, 299 => 100, 293 => 133, 290 => 95, 287 => 94, 285 => 93, 280 => 90, 274 => 86, 271 => 85, 268 => 84, 266 => 83, 261 => 80, 247 => 79, 243 => 101, 228 => 75, 220 => 73, 218 => 72, 213 => 70, 209 => 81, 202 => 71, 196 => 69, 183 => 68, 181 => 60, 175 => 58, 158 => 59, 107 => 42, 101 => 34, 80 => 37, 63 => 23, 36 => 5, 156 => 56, 148 => 55, 142 => 50, 140 => 50, 127 => 45, 123 => 44, 115 => 44, 110 => 46, 85 => 34, 65 => 23, 59 => 22, 45 => 9, 103 => 41, 91 => 31, 74 => 31, 70 => 22, 66 => 19, 25 => 3, 89 => 35, 82 => 25, 92 => 33, 86 => 41, 77 => 23, 57 => 13, 19 => 2, 42 => 8, 29 => 3, 26 => 3, 223 => 88, 214 => 90, 210 => 88, 203 => 71, 199 => 83, 194 => 80, 192 => 62, 189 => 70, 187 => 77, 184 => 76, 178 => 72, 170 => 64, 157 => 61, 152 => 54, 145 => 58, 130 => 47, 125 => 52, 119 => 45, 116 => 29, 112 => 43, 102 => 35, 98 => 35, 76 => 36, 73 => 23, 69 => 20, 56 => 14, 32 => 8, 24 => 9, 22 => 3, 23 => 29, 17 => 1, 68 => 24, 61 => 16, 44 => 12, 20 => 1, 161 => 121, 153 => 50, 150 => 49, 147 => 51, 143 => 57, 137 => 45, 129 => 46, 121 => 33, 118 => 50, 113 => 44, 104 => 35, 99 => 33, 94 => 37, 81 => 28, 78 => 32, 72 => 21, 64 => 19, 53 => 19, 50 => 14, 48 => 10, 41 => 11, 39 => 10, 35 => 5, 33 => 6, 30 => 5, 27 => 5, 182 => 70, 176 => 62, 169 => 66, 163 => 60, 160 => 57, 155 => 56, 151 => 62, 149 => 53, 141 => 56, 136 => 55, 134 => 50, 131 => 31, 128 => 53, 120 => 51, 117 => 45, 114 => 41, 109 => 38, 106 => 41, 100 => 34, 96 => 32, 93 => 31, 90 => 43, 87 => 29, 83 => 29, 79 => 24, 71 => 19, 62 => 22, 58 => 15, 55 => 12, 52 => 12, 49 => 12, 46 => 11, 43 => 8, 40 => 7, 37 => 6, 34 => 5, 31 => 4, 28 => 3,);
- }
- }