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