File tree 2 files changed +16
-0
lines changed
src/Symfony/Bundle/WebProfilerBundle
Resources/views/Collector 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ CHANGELOG
6
6
7
7
* Add a "role=img" and an explicit title in the .svg file used by the web debug toolbar
8
8
to improve accessibility with screen readers for blind users
9
+ * Add a clickable link to the entry view twig file in the toolbar
9
10
10
11
6.1
11
12
---
Original file line number Diff line number Diff line change 46
46
{% endset %}
47
47
48
48
{% set text %}
49
+ {% set template = collector .templates | keys | first %}
50
+ {% set file = collector .templatePaths [template ]| default (false ) %}
51
+ {% set link = file ? file | file_link(1 ) : false %}
52
+ <div class =" sf-toolbar-info-piece" >
53
+ <b >Entry View</b >
54
+ <span >
55
+ {% if link %}
56
+ <a href =" {{ link }}" title =" {{ file }}" class =" stretched-link" >
57
+ {{ template }}
58
+ </a >
59
+ {% else %}
60
+ {{ template }}
61
+ {% endif %}
62
+ </span >
63
+ </div >
49
64
<div class =" sf-toolbar-info-piece" >
50
65
<b >Render Time</b >
51
66
<span >{{ time }} ms</span >
You can’t perform that action at this time.
0 commit comments