{% 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 %} {{ parent() }} {{ render(controller('web_profiler.controller.profiler::searchBarAction', query={type: profile_type }|merge(request.query.all))) }} {% endblock %} {% block panel %}

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

{% if tokens %} {% for result in tokens %} {% if 'command' == profile_type %} {% set css_class = result.status_code == 113 ? 'status-warning' : result.status_code > 0 ? 'status-error' : 'status-success' %} {% else %} {% set css_class = result.status_code|default(0) > 399 ? 'status-error' : result.status_code|default(0) > 299 ? 'status-warning' : 'status-success' %} {% endif %} {% endfor %}
{% if 'command' == profile_type %} Exit code {% else %} Status {% endif %} {% if 'command' == profile_type %} Application {% else %} IP {% endif %} {% if 'command' == profile_type %} Mode {% else %} Method {% endif %} {% if 'command' == profile_type %} Command {% else %} URL {% endif %} 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 %}