123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?php
-
- /* TwigBundle:Exception:exception.html.twig */
- class __TwigTemplate_242069f1a51116631542806e70e996d8 extends Twig_Template
- {
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- // line 1
- echo "<div class=\"sf-exceptionreset\">
-
- <div class=\"block_exception\">
- <div class=\"block_exception_detected clear_fix\">
- <div class=\"illustration_exception\">
- <img alt=\"Exception detected!\" src=\"";
- // line 6
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/exception_detected.gif"), "html");
- echo "\"/>
- </div>
- <div class=\"text_exception\">
-
- <div class=\"open_quote\">
- <img alt=\"\" src=\"";
- // line 11
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/open_quote.gif"), "html");
- echo "\"/>
- </div>
-
- <h1>
- ";
- // line 15
- echo $this->env->getExtension('code')->formatFileFromText(twig_strtr(twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'exception'), "message", array(), "any", false)), array("
- " => "<br />")));
- echo "
- </h1>
-
- <div>
- <strong>";
- // line 19
- echo twig_escape_filter($this->env, $this->getContext($context, 'status_code'), "html");
- echo "</strong> ";
- echo twig_escape_filter($this->env, $this->getContext($context, 'status_text'), "html");
- echo " - ";
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'exception'), "class", array(), "any", false));
- echo "
- </div>
-
- ";
- // line 22
- $context['previous_count'] = twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'exception'), "allPrevious", array(), "any", false));
- // line 23
- echo " ";
- if ($this->getContext($context, 'previous_count')) {
- // line 24
- echo " <div class=\"linked\"><span><strong>";
- echo twig_escape_filter($this->env, $this->getContext($context, 'previous_count'), "html");
- echo "</strong> linked Exception";
- echo ((($this->getContext($context, 'previous_count') > 1)) ? ("s") : (""));
- echo ":</span>
- <ul>
- ";
- // line 26
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "allPrevious", array(), "any", false));
- foreach ($context['_seq'] as $context['i'] => $context['previous']) {
- // line 27
- echo " <li>
- ";
- // line 28
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'previous'), "class", array(), "any", false));
- echo " <a href=\"#traces_link_";
- echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
- echo "\" onclick=\"toggle('traces_";
- echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
- echo "', 'traces'); switchIcons('icon_traces_";
- echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
- echo "_open', 'icon_traces_";
- echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html");
- echo "_close');\">»</a>
- </li>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['i'], $context['previous'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 31
- echo " </ul>
- </div>
- ";
- }
- // line 34
- echo "
- <div class=\"close_quote\">
- <img alt=\"\" src=\"";
- // line 36
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/close_quote.gif"), "html");
- echo "\"/>
- </div>
-
- </div>
- </div>
- </div>
-
- ";
- // line 43
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "toarray", array(), "any", false));
- foreach ($context['_seq'] as $context['position'] => $context['e']) {
- // line 44
- echo " ";
- $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')));
- // line 45
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['position'], $context['e'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 46
- echo "
- ";
- // line 47
- if ($this->getContext($context, 'logger')) {
- // line 48
- echo " <div class=\"block\">
- <div class=\"logs clear_fix\">
- ";
- // line 50
- ob_start();
- // line 51
- echo " <h2>
- Logs
- <a href=\"#\" onclick=\"toggle('logs'); switchIcons('icon_logs_open', 'icon_logs_close'); return false;\">
- <img class=\"toggle\" id=\"icon_logs_open\" alt=\"+\" src=\"";
- // line 54
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html");
- echo "\" style=\"visibility: hidden\" />
- <img class=\"toggle\" id=\"icon_logs_close\" alt=\"-\" src=\"";
- // line 55
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html");
- echo "\" style=\"visibility: visible; margin-left: -18px\" />
- </a>
- </h2>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- // line 59
- echo "
- ";
- // line 60
- if ($this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false)) {
- // line 61
- echo " <div class=\"error_count\">
- <span>
- ";
- // line 63
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false), "html");
- echo " error";
- echo ((($this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false) > 1)) ? ("s") : (""));
- echo "
- </span>
- </div>
- ";
- }
- // line 67
- echo "
- </div>
-
- <div id=\"logs\">
- ";
- // line 71
- $this->env->loadTemplate("TwigBundle:Exception:logs.html.twig")->display(array("logs" => $this->getAttribute($this->getContext($context, 'logger'), "logs", array(), "any", false)));
- // line 72
- echo " </div>
-
- </div>
- ";
- }
- // line 76
- echo "
- ";
- // line 77
- if ($this->getContext($context, 'currentContent')) {
- // line 78
- echo " <div class=\"block\">
- ";
- // line 79
- ob_start();
- // line 80
- echo " <h2>
- Content of the Output
- <a href=\"#\" onclick=\"toggle('output_content'); switchIcons('icon_content_open', 'icon_content_close'); return false;\">
- <img class=\"toggle\" id=\"icon_content_close\" alt=\"-\" src=\"";
- // line 83
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html");
- echo "\" style=\"visibility: hidden\" />
- <img class=\"toggle\" id=\"icon_content_open\" alt=\"+\" src=\"";
- // line 84
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html");
- echo "\" style=\"visibility: visible; margin-left: -18px\" />
- </a>
- </h2>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- // line 88
- echo "
- <div id=\"output_content\" style=\"display: none\">
- ";
- // line 90
- echo twig_escape_filter($this->env, $this->getContext($context, 'currentContent'), "html");
- echo "
- </div>
-
- <div style=\"clear: both\"></div>
- </div>
- ";
- }
- // line 96
- echo "
- </div>
-
- <script type=\"text/javascript\">//<![CDATA[
- function toggle(id, clazz) {
- var el = document.getElementById(id),
- current = el.style.display,
- i;
-
- if (clazz) {
- var tags = document.getElementsByTagName('*');
- for (i = tags.length - 1; i >= 0 ; i--) {
- if (tags[i].className === clazz) {
- tags[i].style.display = 'none';
- }
- }
- }
-
- el.style.display = current === 'none' ? 'block' : 'none';
- }
-
- function switchIcons(id1, id2) {
- var icon1, icon2, visibility1, visibility2;
-
- icon1 = document.getElementById(id1);
- icon2 = document.getElementById(id2);
-
- visibility1 = icon1.style.visibility;
- visibility2 = icon2.style.visibility;
-
- icon1.style.visibility = visibility2;
- icon2.style.visibility = visibility1;
- }
- //]]></script>
- ";
- }
-
- public function getTemplateName()
- {
- return "TwigBundle:Exception:exception.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|