traces.html.twig 1.4KB

1234567891011121314151617181920212223242526
  1. <div class="block">
  2. {% if count > 0 %}
  3. <h2>
  4. <span><small>[{{ count - position + 1 }}/{{ count + 1 }}]</small></span>
  5. {{ exception.class|abbr_class }}: {{ exception.message|e|replace({"\n": '<br />'})|format_file_from_text }}&nbsp;
  6. {% spaceless %}
  7. <a href="#" onclick="toggle('traces_{{ position }}', 'traces'); switchIcons('icon_traces_{{ position }}_open', 'icon_traces_{{ position }}_close'); return false;">
  8. <img class="toggle" id="icon_traces_{{ position }}_close" alt="-" src="{{ asset('bundles/framework/images/blue_picto_less.gif') }}" style="visibility: {{ 0 == count ? 'visible' : 'hidden' }}" />
  9. <img class="toggle" id="icon_traces_{{ position }}_open" alt="+" src="{{ asset('bundles/framework/images/blue_picto_more.gif') }}" style="visibility: {{ 0 == count ? 'hidden' : 'visible' }}; margin-left: -18px" />
  10. </a>
  11. {% endspaceless %}
  12. </h2>
  13. {% else %}
  14. <h2>Stack Trace</h2>
  15. {% endif %}
  16. <a id="traces_link_{{ position }}"></a>
  17. <ol class="traces list_exception" id="traces_{{ position }}" style="display: {{ 0 == count ? 'block' : 'none' }}">
  18. {% for i, trace in exception.trace %}
  19. <li>
  20. {% include 'TwigBundle:Exception:trace.html.twig' with { 'prefix': position, 'i': i, 'trace': trace } only %}
  21. </li>
  22. {% endfor %}
  23. </ol>
  24. </div>