From 027a7f92e18a54a77dc90117bba12417a0677167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Mon, 30 Aug 2021 10:06:25 +0200 Subject: [PATCH] [Profiler] Always show badge with request count Count here is similarly important like number of queries that doctrine-bundle shows, so it should be also displayed at all times --- CHANGELOG.md | 3 ++- src/Resources/views/webprofiler.html.twig | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf150f6c..58db2ecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,10 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release. -# 1.23.0 - ? +# 1.23.0 - 2021-08-30 - Changed the way request/response body is displayed in profiler. symfony/var-dumper is used now. +- Changed badge counter of # of requests on side menu to be always visible # 1.22.1 - 2021-07-26 diff --git a/src/Resources/views/webprofiler.html.twig b/src/Resources/views/webprofiler.html.twig index 69039663..cbb6ece8 100644 --- a/src/Resources/views/webprofiler.html.twig +++ b/src/Resources/views/webprofiler.html.twig @@ -62,11 +62,9 @@ {{ include('@Httplug/Icon/httplug.svg') }} Httplug - {% if collector.failedStacks|length %} - - {{ collector.failedStacks|length }} - - {% endif %} + + {{ (collector.stacks|length - collector.failedStacks|length) ~ '/' ~ collector.stacks|length}} + {% endblock %}