c7e7f80b4e0287e520115d68f1ec.php 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /* WebProfilerBundle:Collector:exception.html.twig */
  3. class __TwigTemplate_20f5c7e7f80b4e0287e520115d68f1ec extends Twig_Template
  4. {
  5. protected $parent;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->parent = array();
  10. $this->blocks = array(
  11. 'head' => array($this, 'block_head'),
  12. 'menu' => array($this, 'block_menu'),
  13. 'panel' => array($this, 'block_panel'),
  14. );
  15. }
  16. public function getParent(array $context)
  17. {
  18. $parent = "WebProfilerBundle:Profiler:layout.html.twig";
  19. if ($parent instanceof Twig_Template) {
  20. $name = $parent->getTemplateName();
  21. $this->parent[$name] = $parent;
  22. $parent = $name;
  23. } elseif (!isset($this->parent[$parent])) {
  24. $this->parent[$parent] = $this->env->loadTemplate($parent);
  25. }
  26. return $this->parent[$parent];
  27. }
  28. protected function doDisplay(array $context, array $blocks = array())
  29. {
  30. $context = array_merge($this->env->getGlobals(), $context);
  31. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  32. }
  33. // line 3
  34. public function block_head($context, array $blocks = array())
  35. {
  36. // line 4
  37. echo " <link href=\"";
  38. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/css/exception.css"), "html");
  39. echo "\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" />
  40. ";
  41. // line 5
  42. echo $this->renderParentBlock("head", $context, $blocks);
  43. echo "
  44. ";
  45. }
  46. // line 8
  47. public function block_menu($context, array $blocks = array())
  48. {
  49. // line 9
  50. echo "<span class=\"label\">
  51. <span class=\"icon\"><img src=\"";
  52. // line 10
  53. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/exception.png"), "html");
  54. echo "\" alt=\"Exception\" /></span>
  55. <strong>Exception</strong>
  56. <span class=\"count\">
  57. ";
  58. // line 13
  59. if ($this->getAttribute($this->getContext($context, 'collector'), "hasexception", array(), "any", false)) {
  60. // line 14
  61. echo " <span>1</span>
  62. ";
  63. }
  64. // line 16
  65. echo " </span>
  66. </span>
  67. ";
  68. }
  69. // line 20
  70. public function block_panel($context, array $blocks = array())
  71. {
  72. // line 21
  73. echo " <h2>Exception</h2>
  74. ";
  75. // line 23
  76. if ((!$this->getAttribute($this->getContext($context, 'collector'), "hasexception", array(), "any", false))) {
  77. // line 24
  78. echo " <p>
  79. <em>No exception was thrown and uncaught during the request.</em>
  80. </p>
  81. ";
  82. } else {
  83. // line 28
  84. echo " ";
  85. echo $this->env->getExtension('actions')->renderAction("WebProfilerBundle:Exception:show", array("exception" => $this->getAttribute($this->getContext($context, 'collector'), "exception", array(), "any", false), "format" => "html"), array());
  86. // line 29
  87. echo " ";
  88. }
  89. }
  90. public function getTemplateName()
  91. {
  92. return "WebProfilerBundle:Collector:exception.html.twig";
  93. }
  94. public function isTraitable()
  95. {
  96. return false;
  97. }
  98. }