File tree Expand file tree Collapse file tree 20 files changed +19
-26
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views Expand file tree Collapse file tree 20 files changed +19
-26
lines changed Original file line number Diff line number Diff line change 2
2
3
3
{% block toolbar %}
4
4
{% set icon %}
5
- {{ include (' @WebProfiler/Icon/ajax.svg.twig ' ) }}
5
+ {{ include (' @WebProfiler/Icon/ajax.svg' ) }}
6
6
<span class =" sf-toolbar-value sf-toolbar-ajax-requests" >0</span >
7
7
{% endset %}
8
8
Original file line number Diff line number Diff line change 21
21
{% set icon %}
22
22
{% if collector .symfonyState is defined %}
23
23
<span class =" sf-toolbar-label" >
24
- {{ include (' @WebProfiler/Icon/symfony.svg.twig ' ) }}
24
+ {{ include (' @WebProfiler/Icon/symfony.svg' ) }}
25
25
</span >
26
26
<span class =" sf-toolbar-value" >{{ collector .symfonyversion }}</span >
27
27
{% elseif collector .applicationname %}
71
71
72
72
<div class =" sf-toolbar-info-piece sf-toolbar-info-php" >
73
73
<b >PHP version</b >
74
- <span >{{ collector .phpversion }}</span >
74
+ <span >
75
+ {{ collector .phpversion }}
76
+ <a href =" {{ path(' _profiler_phpinfo' ) }}" >View phpinfo()</a >
77
+ </span >
75
78
</div >
76
79
77
80
<div class =" sf-toolbar-info-piece sf-toolbar-info-php-ext" >
Original file line number Diff line number Diff line change 6
6
{% if collector .data .nb_errors > 0 or collector .data .forms | length %}
7
7
{% set status_color = collector .data .nb_errors ? ' red' : ' ' %}
8
8
{% set icon %}
9
- {{ include (' @WebProfiler/Icon/form.svg.twig ' ) }}
9
+ {{ include (' @WebProfiler/Icon/form.svg' ) }}
10
10
<span class =" sf-toolbar-value" >
11
11
{% if collector .data .nb_errors %}
12
12
{{ collector .data .nb_errors }}
Original file line number Diff line number Diff line change 7
7
{% set icon %}
8
8
{% set status_color = collector .counterrors ? ' red' : collector .countdeprecations ? ' yellow' : ' ' %}
9
9
{% set error_count = collector .counterrors + collector .countdeprecations + collector .countscreams %}
10
- {{ include (' @WebProfiler/Icon/logger.svg.twig ' ) }}
10
+ {{ include (' @WebProfiler/Icon/logger.svg' ) }}
11
11
<span class =" sf-toolbar-value" >{{ error_count }}</span >
12
12
{% endset %}
13
13
80
80
</tr >
81
81
</table >
82
82
83
- {% if collector .logs %}
83
+ {% if collector .logs %}
84
84
<table >
85
85
<tr >
86
86
<th >#</th >
Original file line number Diff line number Diff line change 3
3
{% block toolbar %}
4
4
{% set icon %}
5
5
{% set status_color = (collector .memory / 1024 / 1024 ) > 50 ? ' yellow' : ' ' %}
6
- {{ include (' @WebProfiler/Icon/memory.svg.twig ' ) }}
6
+ {{ include (' @WebProfiler/Icon/memory.svg' ) }}
7
7
<span class =" sf-toolbar-value" >{{ ' %.1f' | format (collector .memory / 1024 / 1024 ) }}</span >
8
8
<span class =" sf-toolbar-label" >MB</span >
9
9
{% endset %}
Original file line number Diff line number Diff line change 21
21
{% set status_color = collector .events | length and collector .duration > 1000 ? ' yellow' : ' ' %}
22
22
23
23
{% set icon %}
24
- {{ include (' @WebProfiler/Icon/time.svg.twig ' ) }}
24
+ {{ include (' @WebProfiler/Icon/time.svg' ) }}
25
25
<span class =" sf-toolbar-value" >{{ total_time }}</span >
26
26
<span class =" sf-toolbar-label" >ms</span >
27
27
{% endset %}
Original file line number Diff line number Diff line change 5
5
{% block toolbar %}
6
6
{% if collector .messages | length %}
7
7
{% set icon %}
8
- {{ include (' @WebProfiler/Icon/translation.svg.twig ' ) }}
8
+ {{ include (' @WebProfiler/Icon/translation.svg' ) }}
9
9
{% set status_color = collector .countMissings ? ' red' : collector .countFallbacks ? ' yellow' : ' ' %}
10
10
{% set error_count = collector .countMissings + collector .countFallbacks %}
11
11
<span class =" sf-toolbar-value" >{{ error_count ?: collector .countdefines }}</span >
15
15
<div class =" sf-toolbar-info-piece" >
16
16
<b >Missing messages</b >
17
17
<span class =" sf-toolbar-status sf-toolbar-status-{{ collector .countMissings ? ' red' }}" >
18
- {{ collector .countMissings | default ( 0 ) }}
18
+ {{ collector .countMissings }}
19
19
</span >
20
20
</div >
21
21
22
22
<div class =" sf-toolbar-info-piece" >
23
23
<b >Fallback messages</b >
24
24
<span class =" sf-toolbar-status sf-toolbar-status-{{ collector .countFallbacks ? ' yellow' }}" >
25
- {{ collector .countFallbacks | default ( 0 ) }}
25
+ {{ collector .countFallbacks }}
26
26
</span >
27
27
</div >
28
28
29
29
<div class =" sf-toolbar-info-piece" >
30
30
<b >Defined messages</b >
31
- <span class =" sf-toolbar-status" >{{ collector .countdefines | default ( 0 ) }}</span >
31
+ <span class =" sf-toolbar-status" >{{ collector .countdefines }}</span >
32
32
</div >
33
33
{% endset %}
34
34
Original file line number Diff line number Diff line change 3
3
{% block toolbar %}
4
4
{% set time = collector .templatecount ? ' %0.0f' | format (collector .time ) : ' n/a' %}
5
5
{% set icon %}
6
- {{ include (' @WebProfiler/Icon/twig.html.twig ' ) }}
6
+ {{ include (' @WebProfiler/Icon/twig.svg ' ) }}
7
7
<span class =" sf-toolbar-value" >{{ time }}</span >
8
8
<span class =" sf-toolbar-label" >ms</span >
9
9
{% endset %}
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments