PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/app/cache/dev/twig/fa/29/990ac3baaee2d54c9c153aba2551.php

https://bitbucket.org/pyneff/carsharing
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
  1. <?php
  2. /* WebProfilerBundle:Collector:logger.html.twig */
  3. class __TwigTemplate_fa29990ac3baaee2d54c9c153aba2551 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = $this->env->loadTemplate("WebProfilerBundle:Profiler:layout.html.twig");
  9. $this->blocks = array(
  10. 'toolbar' => array($this, 'block_toolbar'),
  11. 'menu' => array($this, 'block_menu'),
  12. 'panel' => array($this, 'block_panel'),
  13. );
  14. }
  15. protected function doGetParent(array $context)
  16. {
  17. return "WebProfilerBundle:Profiler:layout.html.twig";
  18. }
  19. protected function doDisplay(array $context, array $blocks = array())
  20. {
  21. $this->parent->display($context, array_merge($this->blocks, $blocks));
  22. }
  23. // line 3
  24. public function block_toolbar($context, array $blocks = array())
  25. {
  26. // line 4
  27. echo " ";
  28. if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
  29. // line 5
  30. echo " ";
  31. ob_start();
  32. // line 6
  33. 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==\"/>
  34. <span class=\"sf-toolbar-status sf-toolbar-status-yellow\">";
  35. // line 7
  36. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
  37. echo "</span>
  38. ";
  39. $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  40. // line 9
  41. echo " ";
  42. ob_start();
  43. // line 10
  44. echo " <div class=\"sf-toolbar-info-piece\">
  45. <b>Exception</b>
  46. <span class=\"sf-toolbar-status sf-toolbar-status-yellow\">";
  47. // line 12
  48. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
  49. echo "</span>
  50. </div>
  51. ";
  52. $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  53. // line 15
  54. echo " ";
  55. $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, "profiler_url"))));
  56. // line 16
  57. echo " ";
  58. }
  59. }
  60. // line 19
  61. public function block_menu($context, array $blocks = array())
  62. {
  63. // line 20
  64. echo "<span class=\"label\">
  65. <span class=\"icon\"><img src=\"";
  66. // line 21
  67. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/logger.png"), "html", null, true);
  68. echo "\" alt=\"Logger\" /></span>
  69. <strong>Logs</strong>
  70. ";
  71. // line 23
  72. if ($this->getAttribute($this->getContext($context, "collector"), "counterrors")) {
  73. // line 24
  74. echo " <span class=\"count\">
  75. <span>";
  76. // line 25
  77. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "counterrors"), "html", null, true);
  78. echo "</span>
  79. </span>
  80. ";
  81. }
  82. // line 28
  83. echo "</span>
  84. ";
  85. }
  86. // line 31
  87. public function block_panel($context, array $blocks = array())
  88. {
  89. // line 32
  90. echo " <h2>Logs</h2>
  91. ";
  92. // line 34
  93. $context["priority"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "app"), "request"), "query"), "get", array(0 => "priority", 1 => 0), "method");
  94. // line 35
  95. echo "
  96. <table>
  97. <tr>
  98. <th>Filter</th>
  99. <td>
  100. <form id=\"priority-form\" action=\"\" method=\"get\" style=\"display: inline\">
  101. <input type=\"hidden\" name=\"panel\" value=\"logger\" />
  102. <label for=\"priority\">Priority</label>
  103. <select id=\"priority\" name=\"priority\" onchange=\"document.getElementById('priority-form').submit(); \">
  104. ";
  105. // line 44
  106. $context['_parent'] = (array) $context;
  107. $context['_seq'] = twig_ensure_traversable(array(100 => "DEBUG", 200 => "INFO", 250 => "NOTICE", 300 => "WARNING", 400 => "ERROR", 500 => "CRITICAL", 550 => "ALERT", 600 => "EMERGENCY"));
  108. foreach ($context['_seq'] as $context["value"] => $context["text"]) {
  109. // line 45
  110. echo " <option value=\"";
  111. echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
  112. echo "\"";
  113. echo ((($this->getContext($context, "value") == $this->getContext($context, "priority"))) ? (" selected") : (""));
  114. echo ">";
  115. echo twig_escape_filter($this->env, $this->getContext($context, "text"), "html", null, true);
  116. echo "</option>
  117. ";
  118. }
  119. $_parent = $context['_parent'];
  120. unset($context['_seq'], $context['_iterated'], $context['value'], $context['text'], $context['_parent'], $context['loop']);
  121. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  122. // line 47
  123. echo " </select>
  124. <noscript>
  125. <input type=\"submit\" value=\"refresh\" />
  126. </noscript>
  127. </form>
  128. </td>
  129. </tr>
  130. </table>
  131. ";
  132. // line 56
  133. if ($this->getAttribute($this->getContext($context, "collector"), "logs")) {
  134. // line 57
  135. echo " <ul class=\"alt\">
  136. ";
  137. // line 58
  138. $context['_parent'] = (array) $context;
  139. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "collector"), "logs"));
  140. $context['_iterated'] = false;
  141. $context['loop'] = array(
  142. 'parent' => $context['_parent'],
  143. 'index0' => 0,
  144. 'index' => 1,
  145. 'first' => true,
  146. );
  147. foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
  148. if (($this->getAttribute($this->getContext($context, "log"), "priority") >= $this->getContext($context, "priority"))) {
  149. // line 59
  150. echo " <li class=\"";
  151. echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), $this->getAttribute($this->getContext($context, "loop"), "index")), "html", null, true);
  152. if (($this->getAttribute($this->getContext($context, "log"), "priority") >= 400)) {
  153. echo " error";
  154. } elseif (($this->getAttribute($this->getContext($context, "log"), "priority") >= 300)) {
  155. echo " warning";
  156. }
  157. echo "\">
  158. ";
  159. // line 60
  160. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "priorityName"), "html", null, true);
  161. echo " - ";
  162. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "log"), "message"), "html", null, true);
  163. echo "
  164. ";
  165. // line 61
  166. if (($this->getAttribute((isset($context["log"]) ? $context["log"] : null), "context", array(), "any", true, true) && (!twig_test_empty($this->getAttribute($this->getContext($context, "log"), "context"))))) {
  167. // line 62
  168. echo " <br />
  169. <small>
  170. <strong>Context</strong>: ";
  171. // line 64
  172. echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, "log"), "context")), "html", null, true);
  173. echo "
  174. </small>
  175. ";
  176. }
  177. // line 67
  178. echo " </li>
  179. ";
  180. $context['_iterated'] = true;
  181. ++$context['loop']['index0'];
  182. ++$context['loop']['index'];
  183. $context['loop']['first'] = false;
  184. }
  185. }
  186. if (!$context['_iterated']) {
  187. // line 69
  188. echo " <li><em>No logs available for this priority.</em></li>
  189. ";
  190. }
  191. $_parent = $context['_parent'];
  192. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
  193. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  194. // line 71
  195. echo " </ul>
  196. ";
  197. } else {
  198. // line 73
  199. echo " <p>
  200. <em>No logs available.</em>
  201. </p>
  202. ";
  203. }
  204. }
  205. public function getTemplateName()
  206. {
  207. return "WebProfilerBundle:Collector:logger.html.twig";
  208. }
  209. public function isTraitable()
  210. {
  211. return false;
  212. }
  213. public function getDebugInfo()
  214. {
  215. 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,);
  216. }
  217. }