Skip to content

Commit

Permalink
[WebProfilerBundle] made the profile URL clickable only when the meth…
Browse files Browse the repository at this point in the history
…od is GET or HEAD
  • Loading branch information
fabpot committed Dec 13, 2011
1 parent 09678b7 commit 28d93f0
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -14,7 +14,12 @@
{% if profile %}
<div id="resume">
<strong>Profile for:</strong>
{{ profile.method|upper }} <a href="{{ profile.url }}">{{ profile.url }}</a>
{{ profile.method|upper }}
{% if profile.method|upper in ['GET', 'HEAD'] %}
<a href="{{ profile.url }}">{{ profile.url }}</a>
{% else %}
{{ profile.url }}
{% endif %}
<span class="date">
<em>by {{ profile.ip }}</em> at <em>{{ profile.time|date('r') }}</em>
</span>
Expand Down

0 comments on commit 28d93f0

Please sign in to comment.