[WebProfilerBundle] Improve controller linking
This commit is contained in:
parent
32cc2e06a3
commit
f6c0dc64e6
@ -49,13 +49,6 @@
|
||||
<span>{{ request_handler }}</span>
|
||||
</div>
|
||||
|
||||
{% if collector.controller.class is defined -%}
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>Controller class</b>
|
||||
<span>{{ collector.controller.class }}</span>
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>Route name</b>
|
||||
<span>{{ collector.route|default('NONE') }}</span>
|
||||
@ -297,7 +290,7 @@
|
||||
{% if controller.class is defined -%}
|
||||
{%- if method|default(false) %}<span class="sf-toolbar-status sf-toolbar-redirection-method">{{ method }}</span>{% endif -%}
|
||||
{%- set link = controller.file|file_link(controller.line) %}
|
||||
{%- if link %}<a href="{{ link }}" title="{{ controller.file }}">{% else %}<span>{% endif %}
|
||||
{%- if link %}<a href="{{ link }}" title="{{ controller.class }}">{% else %}<span title="{{ controller.class }}">{% endif %}
|
||||
|
||||
{%- if route|default(false) -%}
|
||||
@{{ route }}
|
||||
|
Reference in New Issue
Block a user