8000 [WebProfilerBundle] Make the IP address in the profiler header clicka… · symfony/symfony@52606a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52606a1

Browse files
James Halsalljameshalsall
James Halsall
authored andcommitted
[WebProfilerBundle] Make the IP address in the profiler header clickable to view requests by IP
1 parent 03a824a commit 52606a1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
<dd>{{ status_code }}</dd>
6969

7070
<dt>IP</dt>
71-
<dd>{{ profile.ip }}</dd>
71+
<dd>
72+
<a href="{{ path('_profiler_search_results', { token: token, limit: 10, ip: profile.ip }) }}">{{ profile.ip }}</a>
73+
</dd>
7274

7375
<dt>Profiled on</dt>
7476
<dd>{{ profile.time|date('r') }}</dd>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,8 @@ tr.status-warning td {
491491
color: #FFF;
492492
}
493493

494-
#summary dl.metadata {
494+
#summary dl.metadata,
495+
#summary dl.metadata a {
495496
margin: 5px 0 0;
496497
color: rgba(255, 255, 255, 0.75);
497498
}

0 commit comments

Comments
 (0)
0