10000 [WebProfiler] Improve HttpClient Panel · symfony/symfony@e2e6bd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2e6bd0

Browse files
ismail1432nicolas-grekas
authored andcommitted
[WebProfiler] Improve HttpClient Panel
1 parent fafe576 commit e2e6bd0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
<span class="sf-toolbar-value">{{ collector.requestCount }}</span>
99
{% endset %}
1010

11+
{% set text %}
12+
<div class="sf-toolbar-info-piece">
13+
<b>Total requests</b>
14+
<span>{{ collector.requestCount }}</span>
15+
</div>
16+
<div class="sf-toolbar-info-piece">
17+
<b>HTTP errors</b>
18+
<span class="sf-toolbar-status sf-toolbar-status-red">{{ collector.errorCount }}</span>
19+
</div>
20+
{% endset %}
21+
1122
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
1223
{% endif %}
1324
{% endblock %}

0 commit comments

Comments
 (0)
0