exception.html.twig 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends '@WebProfiler/Profiler/layout.html.twig' %}
  2. {% block head %}
  3. {% if collector.hasexception %}
  4. <style>
  5. {{ render(path('_profiler_exception_css', { token: token })) }}
  6. {{ include('@WebProfiler/Collector/exception.css.twig') }}
  7. </style>
  8. {% endif %}
  9. {{ parent() }}
  10. {% endblock %}
  11. {% block menu %}
  12. <span class="label {{ collector.hasexception ? 'label-status-error' : 'disabled' }}">
  13. <span class="icon">{{ include('@WebProfiler/Icon/exception.svg') }}</span>
  14. <strong>Exception</strong>
  15. {% if collector.hasexception %}
  16. <span class="count">
  17. <span>1</span>
  18. </span>
  19. {% endif %}
  20. </span>
  21. {% endblock %}
  22. {% block panel %}
  23. <h2>Exceptions</h2>
  24. {% if not collector.hasexception %}
  25. <div class="empty">
  26. <p>No exception was thrown and caught during the request.</p>
  27. </div>
  28. {% else %}
  29. <div class="sf-reset">
  30. {{ render(path('_profiler_exception', { token: token })) }}
  31. </div>
  32. {% endif %}
  33. {% endblock %}