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 22
33{% block toolbar %}
44 {% set icon %}
5- {{ include (' @WebProfiler/Icon/ajax.svg.twig ' ) }}
5+ {{ include (' @WebProfiler/Icon/ajax.svg' ) }}
66 <span class =" sf-toolbar-value sf-toolbar-ajax-requests" >0</span >
77 {% endset %}
88
Original file line number Diff line number Diff line change 2121 {% set icon %}
2222 {% if collector .symfonyState is defined %}
2323 <span class =" sf-toolbar-label" >
24- {{ include (' @WebProfiler/Icon/symfony.svg.twig ' ) }}
24+ {{ include (' @WebProfiler/Icon/symfony.svg' ) }}
2525 </span >
2626 <span class =" sf-toolbar-value" >{{ collector .symfonyversion }}</span >
2727 {% elseif collector .applicationname %}
7171
7272 <div class =" sf-toolbar-info-piece sf-toolbar-info-php" >
7373 <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 >
7578 </div >
7679
7780 <div class =" sf-toolbar-info-piece sf-toolbar-info-php-ext" >
Original file line number Diff line number Diff line change 66 {% if collector .data .nb_errors > 0 or collector .data .forms | length %}
77 {% set status_color = collector .data .nb_errors ? ' red' : ' ' %}
88 {% set icon %}
9- {{ include (' @WebProfiler/Icon/form.svg.twig ' ) }}
9+ {{ include (' @WebProfiler/Icon/form.svg' ) }}
1010 <span class =" sf-toolbar-value" >
1111 {% if collector .data .nb_errors %}
1212 {{ collector .data .nb_errors }}
Original file line number Diff line number Diff line change 77 {% set icon %}
88 {% set status_color = collector .counterrors ? ' red' : collector .countdeprecations ? ' yellow' : ' ' %}
99 {% set error_count = collector .counterrors + collector .countdeprecations + collector .countscreams %}
10- {{ include (' @WebProfiler/Icon/logger.svg.twig ' ) }}
10+ {{ include (' @WebProfiler/Icon/logger.svg' ) }}
1111 <span class =" sf-toolbar-value" >{{ error_count }}</span >
1212 {% endset %}
1313
8080 </tr >
8181 </table >
8282
83- {% if collector .logs %}
83+ {% if collector .logs %}
8484 <table >
8585 <tr >
8686 <th >#</th >
Original file line number Diff line number Diff line change 33{% block toolbar %}
44 {% set icon %}
55 {% set status_color = (collector .memory / 1024 / 1024 ) > 50 ? ' yellow' : ' ' %}
6- {{ include (' @WebProfiler/Icon/memory.svg.twig ' ) }}
6+ {{ include (' @WebProfiler/Icon/memory.svg' ) }}
77 <span class =" sf-toolbar-value" >{{ ' %.1f' | format (collector .memory / 1024 / 1024 ) }}</span >
88 <span class =" sf-toolbar-label" >MB</span >
99 {% endset %}
Original file line number Diff line number Diff line change 2121 {% set status_color = collector .events | length and collector .duration > 1000 ? ' yellow' : ' ' %}
2222
2323 {% set icon %}
24- {{ include (' @WebProfiler/Icon/time.svg.twig ' ) }}
24+ {{ include (' @WebProfiler/Icon/time.svg' ) }}
2525 <span class =" sf-toolbar-value" >{{ total_time }}</span >
2626 <span class =" sf-toolbar-label" >ms</span >
2727 {% endset %}
Original file line number Diff line number Diff line change 55{% block toolbar %}
66 {% if collector .messages | length %}
77 {% set icon %}
8- {{ include (' @WebProfiler/Icon/translation.svg.twig ' ) }}
8+ {{ include (' @WebProfiler/Icon/translation.svg' ) }}
99 {% set status_color = collector .countMissings ? ' red' : collector .countFallbacks ? ' yellow' : ' ' %}
1010 {% set error_count = collector .countMissings + collector .countFallbacks %}
1111 <span class =" sf-toolbar-value" >{{ error_count ?: collector .countdefines }}</span >
1515 <div class =" sf-toolbar-info-piece" >
1616 <b >Missing messages</b >
1717 <span class =" sf-toolbar-status sf-toolbar-status-{{ collector .countMissings ? ' red' }}" >
18- {{ collector .countMissings | default ( 0 ) }}
18+ {{ collector .countMissings }}
1919 </span >
2020 </div >
2121
2222 <div class =" sf-toolbar-info-piece" >
2323 <b >Fallback messages</b >
2424 <span class =" sf-toolbar-status sf-toolbar-status-{{ collector .countFallbacks ? ' yellow' }}" >
25- {{ collector .countFallbacks | default ( 0 ) }}
25+ {{ collector .countFallbacks }}
2626 </span >
2727 </div >
2828
2929 <div class =" sf-toolbar-info-piece" >
3030 <b >Defined messages</b >
31- <span class =" sf-toolbar-status" >{{ collector .countdefines | default ( 0 ) }}</span >
31+ <span class =" sf-toolbar-status" >{{ collector .countdefines }}</span >
3232 </div >
3333 {% endset %}
3434
Original file line number Diff line number Diff line change 33{% block toolbar %}
44 {% set time = collector .templatecount ? ' %0.0f' | format (collector .time ) : ' n/a' %}
55 {% set icon %}
6- {{ include (' @WebProfiler/Icon/twig.html.twig ' ) }}
6+ {{ include (' @WebProfiler/Icon/twig.svg ' ) }}
77 <span class =" sf-toolbar-value" >{{ time }}</span >
88 <span class =" sf-toolbar-label" >ms</span >
99 {% endset %}
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments