{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% macro profile_search_filter(request, result, property) %} {%- if request.hasSession -%} {{ source('@WebProfiler/Icon/search.svg') }} {%- endif -%} {% endmacro %} {% block head %} {{ parent() }} {% endblock %} {% block summary %}

Profile Search

{% endblock %} {% block sidebar_search_css_class %}{% endblock %} {% block sidebar_shortcuts_links %}{% endblock %} {% block panel %}

{{ tokens ? tokens|length : 'No' }} results found

{% if tokens %} {% for result in tokens %} {% set css_class = result.status_code|default(0) > 399 ? 'status-error' : result.status_code|default(0) > 299 ? 'status-warning' : 'status-success' %} {% endfor %}
Status IP Method URL Time Token
{{ result.status_code|default('n/a') }} {{ result.ip }} {{ _self.profile_search_filter(request, result, 'ip') }} {{ result.method }} {{ _self.profile_search_filter(request, result, 'method') }} {{ result.url }} {{ _self.profile_search_filter(request, result, 'url') }} {{ result.token }}
{% else %}

The query returned no result.

{% endif %} {% endblock %}