dbee28afd6232391c4e176db17d8.php 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. /* TwigBundle:Exception:traces.html.twig */
  3. class __TwigTemplate_48b2dbee28afd6232391c4e176db17d8 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=\"block\">
  10. ";
  11. // line 2
  12. if (($this->getContext($context, 'count') > 0)) {
  13. // line 3
  14. echo " <h2>
  15. <span><small>[";
  16. // line 4
  17. echo twig_escape_filter($this->env, (($this->getContext($context, 'count') - $this->getContext($context, 'position')) + 1), "html");
  18. echo "/";
  19. echo twig_escape_filter($this->env, ($this->getContext($context, 'count') + 1), "html");
  20. echo "]</small></span>
  21. ";
  22. // line 5
  23. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'exception'), "class", array(), "any", false));
  24. echo ": ";
  25. echo twig_escape_filter($this->env, twig_strtr($this->getAttribute($this->getContext($context, 'exception'), "message", array(), "any", false), array("
  26. " => "<br />")), "html");
  27. echo "&nbsp;
  28. ";
  29. // line 6
  30. ob_start();
  31. // line 7
  32. echo " <a href=\"#\" onclick=\"toggle('traces_";
  33. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  34. echo "', 'traces'); switchIcons('icon_traces_";
  35. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  36. echo "_open', 'icon_traces_";
  37. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  38. echo "_close'); return false;\">
  39. <img class=\"toggle\" id=\"icon_traces_";
  40. // line 8
  41. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  42. echo "_close\" alt=\"-\" src=\"";
  43. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html");
  44. echo "\" style=\"visibility: ";
  45. echo (((0 == $this->getContext($context, 'count'))) ? ("display") : ("hidden"));
  46. echo "\" />
  47. <img class=\"toggle\" id=\"icon_traces_";
  48. // line 9
  49. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  50. echo "_open\" alt=\"+\" src=\"";
  51. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html");
  52. echo "\" style=\"visibility: ";
  53. echo (((0 == $this->getContext($context, 'count'))) ? ("hidden") : ("display"));
  54. echo "; margin-left: -18px\" />
  55. </a>
  56. ";
  57. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  58. // line 12
  59. echo " </h2>
  60. ";
  61. } else {
  62. // line 14
  63. echo " <h2>Stack Trace</h2>
  64. ";
  65. }
  66. // line 16
  67. echo "
  68. <a id=\"traces_link_";
  69. // line 17
  70. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  71. echo "\"></a>
  72. <ol class=\"traces list_exception\" id=\"traces_";
  73. // line 18
  74. echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html");
  75. echo "\" style=\"display: ";
  76. echo (((0 == $this->getContext($context, 'count'))) ? ("block") : ("none"));
  77. echo "\">
  78. ";
  79. // line 19
  80. $context['_parent'] = (array) $context;
  81. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "trace", array(), "any", false));
  82. foreach ($context['_seq'] as $context['i'] => $context['trace']) {
  83. // line 20
  84. echo " <li>
  85. ";
  86. // line 21
  87. $this->env->loadTemplate("TwigBundle:Exception:trace.html.twig")->display(array("prefix" => $this->getContext($context, 'position'), "i" => $this->getContext($context, 'i'), "trace" => $this->getContext($context, 'trace')));
  88. // line 22
  89. echo " </li>
  90. ";
  91. }
  92. $_parent = $context['_parent'];
  93. unset($context['_seq'], $context['_iterated'], $context['i'], $context['trace'], $context['_parent'], $context['loop']);
  94. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  95. // line 24
  96. echo " </ol>
  97. </div>
  98. ";
  99. }
  100. public function getTemplateName()
  101. {
  102. return "TwigBundle:Exception:traces.html.twig";
  103. }
  104. public function isTraitable()
  105. {
  106. return false;
  107. }
  108. }