File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 66
77- The profiler collector has been rewritten to use objects instead of arrays.
88- Bumped minimum Symfony version to 2.8.
9+ - Updated profiler badges to match Symfony 2.8+ profiler design.
910
1011### Fixed
1112
Original file line number Diff line number Diff line change 1313 {% set text %}
1414 <div class =" sf-toolbar-info-piece" >
1515 <b >Successful requests</b >
16- <span >{{ collector .successfulStacks | length }}</span >
16+ <span class = " sf-toolbar-status " >{{ collector .successfulStacks | length }}</span >
1717 </div >
1818 <div class =" sf-toolbar-info-piece" >
1919 <b >Failed requests</b >
20- <span >{{ collector .failedStacks | length }}</span >
20+ <span class = " sf-toolbar-status {{ collector . failedStacks | length ? ' sf-toolbar-status-red ' }} " >{{ collector .failedStacks | length }}</span >
2121 </div >
2222 {% endset %}
2323
24- {% include ' WebProfilerBundle:Profiler:toolbar_item.html.twig' with { ' link' : profiler_url } %}
24+ {% include ' WebProfilerBundle:Profiler:toolbar_item.html.twig' with { ' link' : profiler_url , ' status ' : collector . failedStacks | length ? ' red ' : ' ' } %}
2525 {% endif %}
2626{% endblock %}
2727
3333
3434{% block menu %}
3535 {# This left-hand menu appears when using the full-screen profiler. #}
36- <span class =" label {{ collector .stacks | length == 0 ? ' disabled' }}" >
36+ <span class =" label {{ collector .stacks | length == 0 ? ' disabled' }} {{ collector . failedStacks | length ? ' label-status-error ' }} " >
3737 <span class =" icon" >
3838 {{ include (' @Httplug/Icon/httplug.svg' ) }}
3939 </span >
4040 <strong >Httplug</strong >
41+ {% if collector .failedStacks | length %}
42+ <span class =" count" >
43+ <span >{{ collector .failedStacks | length }}</span >
44+ </span >
45+ {% endif %}
4146 </span >
4247{% endblock %}
4348
You can’t perform that action at this time.
0 commit comments