{% extends '@WebProfiler/Profiler/base.html.twig' %} {% block body %} {{ include('@WebProfiler/Profiler/header.html.twig', with_context = false) }}
{% block summary %} {% if profile is defined %} {% set status_code = ('request' in profile.collectors|keys) ? profile.getcollector('request').statuscode|default(0) : 0 %} {% set css_class = status_code > 399 ? 'status-error' : status_code > 299 ? 'status-warning' : 'status-success' %}

{% if profile.method|upper in ['GET', 'HEAD'] %} {{ profile.url }} {% else %} {{ profile.url }} {% endif %}

{% set request_collector = profile.collectors.request|default(false) %} {% if request_collector and request_collector.redirect -%} {%- set redirect = request_collector.redirect -%} {%- set controller = redirect.controller -%} {%- set redirect_route = '@' ~ redirect.route %} {%- endif %} {% if request_collector and request_collector.forwardtoken -%} {% set forward_profile = profile.childByToken(request_collector.forwardtoken) %} {% set controller = forward_profile ? forward_profile.collector('request').controller : 'n/a' %} {%- endif %}
{% endif %} {% endblock %}
{{ include('@WebProfiler/Profiler/base_js.html.twig') }} {% block panel '' %}
{% endblock %}