{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if collector.callCount %} {% if collector.errorCount %} {% set color = 'red' %} {% else %} {% set color = 'green' %} {% endif %} {% set status_color = collector.errorCount ? 'red' : (collector.hasSlowResponses() ? 'yellow' : 'normal') %} {% set icon %} {# Symfony <2.8 toolbar #} {% if profiler_markup_version == 1 %} {{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }}
{% else %} {{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }} {% endif %} {% endset %} {% set text %} {% endset %} {% include "@WebProfiler/Profiler/toolbar_item.html.twig" with { "link": profiler_url, status: status_color } %} {% endif %} {% endblock %} {% block menu %} {% if collector.callCount %} {% set label_class = collector.errorCount ? 'label-status-error' : (collector.hasSlowResponses() ? 'label-status-warning' : '') %} {% else %} {% set label_class = 'disabled' %} {% endif %} {{ include("@EightPointsGuzzle/Icons/logo.svg.twig") }} Guzzle {% if collector.callCount > 0 %} {{ collector.callCount }} {% endif %} {% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block panel %}