mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 20:18:52 +02:00
* symfony 5.4 (diff dev) * symfony 5.4 (working) * symfony 5.4 (update autoload) * symfony 5.4 (remove swiftmailer mailer implementation) * symfony 5.4 (php doc and split Global accessor class) ### Impacted packages: composer require php:">=7.2.5 <8.0.0" symfony/console:5.4.* symfony/dotenv:5.4.* symfony/framework-bundle:5.4.* symfony/twig-bundle:5.4.* symfony/yaml:5.4.* --update-with-dependencies composer require symfony/stopwatch:5.4.* symfony/web-profiler-bundle:5.4.* --dev --update-with-dependencies
38 lines
1.1 KiB
Twig
38 lines
1.1 KiB
Twig
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
|
|
|
{% block head %}
|
|
{% if collector.hasexception %}
|
|
<style>
|
|
{{ render(controller('web_profiler.controller.exception_panel::stylesheet', { token: token })) }}
|
|
{{ include('@WebProfiler/Collector/exception.css.twig') }}
|
|
</style>
|
|
{% endif %}
|
|
{{ parent() }}
|
|
{% endblock %}
|
|
|
|
{% block menu %}
|
|
<span class="label {{ collector.hasexception ? 'label-status-error' : 'disabled' }}">
|
|
<span class="icon">{{ include('@WebProfiler/Icon/exception.svg') }}</span>
|
|
<strong>Exception</strong>
|
|
{% if collector.hasexception %}
|
|
<span class="count">
|
|
<span>1</span>
|
|
</span>
|
|
{% endif %}
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block panel %}
|
|
<h2>Exceptions</h2>
|
|
|
|
{% if not collector.hasexception %}
|
|
<div class="empty">
|
|
<p>No exception was thrown and caught during the request.</p>
|
|
</div>
|
|
{% else %}
|
|
<div class="sf-reset">
|
|
{{ render(controller('web_profiler.controller.exception_panel::body', { token: token })) }}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|