Added some HTML5 features to the Symfony Profiler
This commit is contained in:
parent
9e82562948
commit
547076e3ea
@ -203,7 +203,7 @@
|
|||||||
{% if show_level %}
|
{% if show_level %}
|
||||||
<span class="colored text-bold">{{ log.priorityName }}</span>
|
<span class="colored text-bold">{{ log.priorityName }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="text-muted newline">{{ log.timestamp|date('H:i:s') }}</span>
|
<time class="text-muted newline" title="{{ log.timestamp|date('r') }}" datetime="{{ log.timestamp|date('c') }}">{{ log.timestamp|date('H:i:s') }}</time>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{% if channel_is_defined %}
|
{% if channel_is_defined %}
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>Profiled on</dt>
|
<dt>Profiled on</dt>
|
||||||
<dd>{{ profile.time|date('r') }}</dd>
|
<dd><time datetime="{{ profile.time|date('c') }}">{{ profile.time|date('r') }}</time></dd>
|
||||||
|
|
||||||
<dt>Token</dt>
|
<dt>Token</dt>
|
||||||
<dd>{{ profile.token }}</dd>
|
<dd>{{ profile.token }}</dd>
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
||||||
|
|
||||||
|
{% macro profile_search_filter(request, result, property) %}
|
||||||
|
{%- if request.session is not null -%}
|
||||||
|
<a href="{{ path('_profiler_search_results', request.query.all|merge({token: result.token})|merge({ (property): result[property] })) }}" title="Search"><span title="Search" class="sf-icon sf-search">{{ include('@WebProfiler/Icon/search.svg') }}</span></a>
|
||||||
|
{%- endif -%}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% import _self as helper %}
|
||||||
|
|
||||||
{% block summary %}
|
{% block summary %}
|
||||||
<div class="status">
|
<div class="status">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@ -32,28 +40,14 @@
|
|||||||
<span class="label {{ css_class }}">{{ result.status_code|default('n/a') }}</span>
|
<span class="label {{ css_class }}">{{ result.status_code|default('n/a') }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="nowrap">{{ result.ip }}</span>
|
<span class="nowrap">{{ result.ip }} {{ helper.profile_search_filter(request, result, 'ip') }}</span>
|
||||||
{% if request.session is not null %}
|
|
||||||
<a href="{{ path('_profiler_search_results', request.query.all|merge({'ip': result.ip, 'token': result.token})) }}" title="Search">
|
|
||||||
<span title="Search" class="sf-icon sf-search">{{ include('@WebProfiler/Icon/search.svg') }}</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ result.method }}
|
<span class="nowrap">{{ result.method }} {{ helper.profile_search_filter(request, result, 'method') }}</span>
|
||||||
{% if request.session is not null %}
|
|
||||||
<a href="{{ path('_profiler_search_results', request.query.all|merge({'method': result.method, 'token': result.token})) }}" title="Search">
|
|
||||||
<span title="Search" class="sf-icon sf-search">{{ include('@WebProfiler/Icon/search.svg') }}</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
</td>
|
||||||
<td class="break-long-words">
|
<td class="break-long-words">
|
||||||
{{ result.url }}
|
{{ result.url }}
|
||||||
{% if request.session is not null %}
|
{{ helper.profile_search_filter(request, result, 'url') }}
|
||||||
<a href="{{ path('_profiler_search_results', request.query.all|merge({'url': result.url, 'token': result.token})) }}" title="Search">
|
|
||||||
<span title="Search" class="sf-icon sf-search">{{ include('@WebProfiler/Icon/search.svg') }}</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
</td>
|
||||||
<td class="text-small">
|
<td class="text-small">
|
||||||
<span class="nowrap">{{ result.time|date('d-M-Y') }}</span>
|
<span class="nowrap">{{ result.time|date('d-M-Y') }}</span>
|
||||||
|
@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="status_code">Status</label>
|
<label for="status_code">Status</label>
|
||||||
<input type="number" name="status_code" id="status_code" value="{{ status_code }}">
|
<input type="number" name="status_code" id="status_code" min="100" max="599" value="{{ status_code }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="url">URL</label>
|
<label for="url">URL</label>
|
||||||
<input type="text" name="url" id="url" value="{{ url }}">
|
<input type="url" name="url" id="url" value="{{ url }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
Reference in New Issue
Block a user