File tree 1 file changed +22
-0
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 54
54
{% else %}
55
55
<h4 >Requests</h4 >
56
56
{% for trace in client .traces %}
57
+ {% set profiler_token = ' ' %}
58
+ {% set profiler_link = ' ' %}
59
+ {% if trace .info .response_headers is defined %}
60
+ {% for header in trace .info .response_headers %}
61
+ {% if header matches ' /^x-debug-token: .*$/i' %}
62
+ {% set profiler_token = (header .getValue | slice(' x-debug-token: ' | length )) %}
63
+ {% endif %}
64
+ {% if header matches ' /^x-debug-token-link: .*$/i' %}
65
+ {% set profiler_link = (header .getValue | slice(' x-debug-token-link: ' | length )) %}
66
+ {% endif %}
67
+ {% endfor %}
68
+ {% endif %}
57
69
<table >
58
70
<thead >
59
71
<tr >
66
78
{{ profiler_dump(trace .options , maxDepth=1) }}
67
79
{% endif %}
68
80
</th >
81
+ {% if profiler_token and profiler_link %}
82
+ <th >
83
+ Profile
84
+ </th >
85
+ {% endif %}
69
86
</tr >
70
87
</thead >
71
88
<tbody >
85
102
<td >
86
103
{{ profiler_dump(trace .info , maxDepth=1) }}
87
104
</td >
105
+ {% if profiler_token and profiler_link %}
106
+ <td >
107
+ <span ><a href =" {{ profiler_link }}" target =" _blank" >{{ profiler_token }}</a ></span >
108
+ </td >
109
+ {% endif %}
88
110
</tr >
89
111
</tbody >
90
112
</table >
You can’t perform that action at this time.
0 commit comments