Misc. tweaks and improvements
This commit is contained in:
parent
ebb44e4832
commit
972a92e778
@ -145,7 +145,7 @@ class TemplateManager
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function reorderTemplates($templates)
|
private function reorderTemplates($templates)
|
||||||
{
|
{
|
||||||
$templates = $this->moveArrayElementToFirstPosition($templates, 'twig');
|
$templates = $this->moveArrayElementToFirstPosition($templates, 'twig');
|
||||||
$templates = $this->moveArrayElementToFirstPosition($templates, 'memory');
|
$templates = $this->moveArrayElementToFirstPosition($templates, 'memory');
|
||||||
|
@ -37,12 +37,12 @@
|
|||||||
<span>{{ collector.statuscode }} {{ collector.statustext }}</span>
|
<span>{{ collector.statuscode }} {{ collector.statustext }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="sf-toolbar-info-piece">
|
<div class="sf-toolbar-info-piece">
|
||||||
<b>Controller method</b>
|
<b>Controller</b>
|
||||||
<span>{{ request_handler }}</span>
|
<span>{{ request_handler }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% if collector.controller.class is defined %}
|
{% if collector.controller.class is defined %}
|
||||||
<div class="sf-toolbar-info-piece">
|
<div class="sf-toolbar-info-piece">
|
||||||
<b>Controller file</b>
|
<b>Controller class</b>
|
||||||
<span>{{ collector.controller.class }}</span>
|
<span>{{ collector.controller.class }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
{% block toolbar %}
|
{% block toolbar %}
|
||||||
{% set total_time = collector.events|length ? '%.0f'|format(collector.duration) : 'n/a' %}
|
{% set total_time = collector.events|length ? '%.0f'|format(collector.duration) : 'n/a' %}
|
||||||
{% set initialization_time = collector.events|length ? '%.0f'|format(collector.inittime) : 'n/a' %}
|
{% set initialization_time = collector.events|length ? '%.0f'|format(collector.inittime) : 'n/a' %}
|
||||||
{% set status_color = collector.events|length ? collector.duration > 1000 ? 'yellow' : '' %}
|
{% set status_color = collector.events|length and collector.duration > 1000 ? 'yellow' : '' %}
|
||||||
|
|
||||||
{% set icon %}
|
{% set icon %}
|
||||||
{{ include('@WebProfiler/Icon/time.svg.twig') }}
|
{{ include('@WebProfiler/Icon/time.svg.twig') }}
|
||||||
|
Reference in New Issue
Block a user