Skip to content

Commit ce7aeed

Browse files
authored
[Profiler] Always show badge with request count (#398)
Count here is similarly important like number of queries that doctrine-bundle shows, so it should be also displayed at all times
1 parent 836f793 commit ce7aeed

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5-
# 1.23.0 - ?
5+
# 1.23.0 - 2021-08-30
66

77
- Changed the way request/response body is displayed in profiler. symfony/var-dumper is used now.
8+
- Changed badge counter of # of requests on side menu to be always visible
89

910
# 1.22.1 - 2021-07-26
1011

src/Resources/views/webprofiler.html.twig

+3-5
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@
6262
{{ include('@Httplug/Icon/httplug.svg') }}
6363
</span>
6464
<strong>Httplug</strong>
65-
{% if collector.failedStacks|length %}
66-
<span class="count">
67-
<span>{{ collector.failedStacks|length }}</span>
68-
</span>
69-
{% endif %}
65+
<span class="count">
66+
<span>{{ (collector.stacks|length - collector.failedStacks|length) ~ '/' ~ collector.stacks|length}}</span>
67+
</span>
7068
</span>
7169
{% endblock %}
7270

0 commit comments

Comments
 (0)