8000 feature #19815 [WebProfilerBundle] Make the IP address in the profile… · ostrolucky/symfony@7f12115 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f12115

Browse files
committed
feature symfony#19815 [WebProfilerBundle] Make the IP address in the profiler header clickable (jameshalsall)
This PR was merged into the 3.3-dev branch. Discussion ---------- [WebProfilerBundle] Make the IP address in the profiler header clickable | Q | A | | --- | --- | | Branch? | master | | Bug fix? | no | | New feature? | yes | | BC breaks? | no | | Deprecations? | no | | Tests pass? | yes | | License | MIT | Commits ------- 52606a1 [WebProfilerBundle] Make the IP address in the profiler header clickable to view requests by IP
2 parents 44a36db + cbcfb54 commit 7f12115

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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>

Resources/views/Profiler/profiler.css.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ tr.status-warning td {
528528
color: #FFF;
529529
}
530530

531-
#summary dl.metadata {
531+
#summary dl.metadata,
532+
#summary dl.metadata a {
532533
margin: 5px 0 0;
533534
color: rgba(255, 255, 255, 0.75);
534535
}

0 commit comments

Comments
 (0)
0