69f1a51116631542806e70e996d8.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?php
  2. /* TwigBundle:Exception:exception.html.twig */
  3. class __TwigTemplate_242069f1a51116631542806e70e996d8 extends Twig_Template
  4. {
  5. protected function doDisplay(array $context, array $blocks = array())
  6. {
  7. $context = array_merge($this->env->getGlobals(), $context);
  8. // line 1
  9. echo "<div class=\"sf-exceptionreset\">
  10. <div class=\"block_exception\">
  11. <div class=\"block_exception_detected clear_fix\">
  12. <div class=\"illustration_exception\">
  13. <img alt=\"Exception detected!\" src=\"";
  14. // line 6
  15. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/exception_detected.gif"), "html");
  16. echo "\"/>
  17. </div>
  18. <div class=\"text_exception\">
  19. <div class=\"open_quote\">
  20. <img alt=\"\" src=\"";
  21. // line 11
  22. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/open_quote.gif"), "html");
  23. echo "\"/>
  24. </div>
  25. <h1>
  26. ";
  27. // line 15
  28. echo $this->env->getExtension('code')->formatFileFromText(twig_strtr(twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'exception'), "message", array(), "any", false)), array("
  29. " => "<br />")));
  30. echo "
  31. </h1>
  32. <div>
  33. <strong>";
  34. // line 19
  35. echo twig_escape_filter($this->env, $this->getContext($context, 'status_code'), "html");
  36. echo "</strong> ";
  37. echo twig_escape_filter($this->env, $this->getContext($context, 'status_text'), "html");
  38. echo " - ";
  39. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'exception'), "class", array(), "any", false));
  40. echo "
  41. </div>
  42. ";
  43. // line 22
  44. $context['previous_count'] = twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'exception'), "allPrevious", array(), "any", false));
  45. // line 23
  46. echo " ";
  47. if ($this->getContext($context, 'previous_count')) {
  48. // line 24
  49. echo " <div class=\"linked\"><span><strong>";
  50. echo twig_escape_filter($this->env, $this->getContext($context, 'previous_count'), "html");
  51. echo "</strong> linked Exception";
  52. echo ((($this->getContext($context, 'previous_count') > 1)) ? ("s") : (""));
  53. echo ":</span>
  54. <ul>
  55. ";
  56. // line 26
  57. $context['_parent'] = (array) $context;
  58. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "allPrevious", array(), "any", false));
  59. foreach ($context['_seq'] as $context['i'] => $context['previous']) {
  60. // line 27
  61. echo " <li>
  62. ";
  63. // line 28
  64. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'previous'), "class", array(), "any", false));
  65. echo " <a href=\"#traces_link_";
  66. echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
  67. echo "\" onclick=\"toggle('traces_";
  68. echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
  69. echo "', 'traces'); switchIcons('icon_traces_";
  70. echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
  71. echo "_open', 'icon_traces_";
  72. echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
  73. echo "_close');\">&raquo;</a>
  74. </li>
  75. ";
  76. }
  77. $_parent = $context['_parent'];
  78. unset($context['_seq'], $context['_iterated'], $context['i'], $context['previous'], $context['_parent'], $context['loop']);
  79. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  80. // line 31
  81. echo " </ul>
  82. </div>
  83. ";
  84. }
  85. // line 34
  86. echo "
  87. <div class=\"close_quote\">
  88. <img alt=\"\" src=\"";
  89. // line 36
  90. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/close_quote.gif"), "html");
  91. echo "\"/>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. ";
  97. // line 43
  98. $context['_parent'] = (array) $context;
  99. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "toarray", array(), "any", false));
  100. foreach ($context['_seq'] as $context['position'] => $context['e']) {
  101. // line 44
  102. echo " ";
  103. $this->env->loadTemplate("TwigBundle:Exception:traces.html.twig")->display(array("exception" => $this->getContext($context, 'e'), "position" => $this->getContext($context, 'position'), "count" => $this->getContext($context, 'previous_count')));
  104. // line 45
  105. echo " ";
  106. }
  107. $_parent = $context['_parent'];
  108. unset($context['_seq'], $context['_iterated'], $context['position'], $context['e'], $context['_parent'], $context['loop']);
  109. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  110. // line 46
  111. echo "
  112. ";
  113. // line 47
  114. if ($this->getContext($context, 'logger')) {
  115. // line 48
  116. echo " <div class=\"block\">
  117. <div class=\"logs clear_fix\">
  118. ";
  119. // line 50
  120. ob_start();
  121. // line 51
  122. echo " <h2>
  123. Logs&nbsp;
  124. <a href=\"#\" onclick=\"toggle('logs'); switchIcons('icon_logs_open', 'icon_logs_close'); return false;\">
  125. <img class=\"toggle\" id=\"icon_logs_open\" alt=\"+\" src=\"";
  126. // line 54
  127. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html");
  128. echo "\" style=\"visibility: hidden\" />
  129. <img class=\"toggle\" id=\"icon_logs_close\" alt=\"-\" src=\"";
  130. // line 55
  131. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html");
  132. echo "\" style=\"visibility: visible; margin-left: -18px\" />
  133. </a>
  134. </h2>
  135. ";
  136. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  137. // line 59
  138. echo "
  139. ";
  140. // line 60
  141. if ($this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false)) {
  142. // line 61
  143. echo " <div class=\"error_count\">
  144. <span>
  145. ";
  146. // line 63
  147. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false), "html");
  148. echo " error";
  149. echo ((($this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false) > 1)) ? ("s") : (""));
  150. echo "
  151. </span>
  152. </div>
  153. ";
  154. }
  155. // line 67
  156. echo "
  157. </div>
  158. <div id=\"logs\">
  159. ";
  160. // line 71
  161. $this->env->loadTemplate("TwigBundle:Exception:logs.html.twig")->display(array("logs" => $this->getAttribute($this->getContext($context, 'logger'), "logs", array(), "any", false)));
  162. // line 72
  163. echo " </div>
  164. </div>
  165. ";
  166. }
  167. // line 76
  168. echo "
  169. ";
  170. // line 77
  171. if ($this->getContext($context, 'currentContent')) {
  172. // line 78
  173. echo " <div class=\"block\">
  174. ";
  175. // line 79
  176. ob_start();
  177. // line 80
  178. echo " <h2>
  179. Content of the Output&nbsp;
  180. <a href=\"#\" onclick=\"toggle('output_content'); switchIcons('icon_content_open', 'icon_content_close'); return false;\">
  181. <img class=\"toggle\" id=\"icon_content_close\" alt=\"-\" src=\"";
  182. // line 83
  183. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html");
  184. echo "\" style=\"visibility: hidden\" />
  185. <img class=\"toggle\" id=\"icon_content_open\" alt=\"+\" src=\"";
  186. // line 84
  187. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html");
  188. echo "\" style=\"visibility: visible; margin-left: -18px\" />
  189. </a>
  190. </h2>
  191. ";
  192. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  193. // line 88
  194. echo "
  195. <div id=\"output_content\" style=\"display: none\">
  196. ";
  197. // line 90
  198. echo twig_escape_filter($this->env, $this->getContext($context, 'currentContent'), "html");
  199. echo "
  200. </div>
  201. <div style=\"clear: both\"></div>
  202. </div>
  203. ";
  204. }
  205. // line 96
  206. echo "
  207. </div>
  208. <script type=\"text/javascript\">//<![CDATA[
  209. function toggle(id, clazz) {
  210. var el = document.getElementById(id),
  211. current = el.style.display,
  212. i;
  213. if (clazz) {
  214. var tags = document.getElementsByTagName('*');
  215. for (i = tags.length - 1; i >= 0 ; i--) {
  216. if (tags[i].className === clazz) {
  217. tags[i].style.display = 'none';
  218. }
  219. }
  220. }
  221. el.style.display = current === 'none' ? 'block' : 'none';
  222. }
  223. function switchIcons(id1, id2) {
  224. var icon1, icon2, visibility1, visibility2;
  225. icon1 = document.getElementById(id1);
  226. icon2 = document.getElementById(id2);
  227. visibility1 = icon1.style.visibility;
  228. visibility2 = icon2.style.visibility;
  229. icon1.style.visibility = visibility2;
  230. icon2.style.visibility = visibility1;
  231. }
  232. //]]></script>
  233. ";
  234. }
  235. public function getTemplateName()
  236. {
  237. return "TwigBundle:Exception:exception.html.twig";
  238. }
  239. public function isTraitable()
  240. {
  241. return false;
  242. }
  243. }