File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
- The profiler collector has been rewritten to use objects instead of arrays.
8
8
- Bumped minimum Symfony version to 2.8.
9
+ - Updated profiler badges to match Symfony 2.8+ profiler design.
9
10
10
11
### Fixed
11
12
Original file line number Diff line number Diff line change 13
13
{% set text %}
14
14
<div class =" sf-toolbar-info-piece" >
15
15
<b >Successful requests</b >
16
- <span >{{ collector .successfulStacks | length }}</span >
16
+ <span class = " sf-toolbar-status " >{{ collector .successfulStacks | length }}</span >
17
17
</div >
18
18
<div class =" sf-toolbar-info-piece" >
19
19
<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 >
21
21
</div >
22
22
{% endset %}
23
23
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 ' : ' ' } %}
25
25
{% endif %}
26
26
{% endblock %}
27
27
33
33
34
34
{% block menu %}
35
35
{# 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 ' }} " >
37
37
<span class =" icon" >
38
38
{{ include (' @Httplug/Icon/httplug.svg' ) }}
39
39
</span >
40
40
<strong >Httplug</strong >
41
+ {% if collector .failedStacks | length %}
42
+ <span class =" count" >
43
+ <span >{{ collector .failedStacks | length }}</span >
44
+ </span >
45
+ {% endif %}
41
46
</span >
42
47
{% endblock %}
43
48
You can’t perform that action at this time.
0 commit comments