Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[WebProfilerBundle] added a profiler panel for the router
  • Loading branch information
fabpot committed Oct 24, 2011
1 parent 8cc3158 commit 8fa061c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Expand Up @@ -433,3 +433,11 @@ td.main, td.menu {
margin-bottom: 15px;
margin-top: 5px;
}

#collector_content .routing tr.matches td {
background-color: #0e0;
}

#collector_content .routing tr.almost td {
background-color: #fa0;
}
@@ -0,0 +1,30 @@
{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}

{% block toolbar %}
{% endblock %}

{% block menu %}
<span class="label">
<span class="icon"><img src="{{ asset('bundles/webprofiler/images/profiler/routing.png') }}" alt="Routing" /></span>

This comment has been minimized.

Copy link
@linniksa

linniksa Oct 24, 2011

Contributor

file routing.png does not exists

This comment has been minimized.

Copy link
@henrikbjorn

henrikbjorn Nov 2, 2011

Contributor

@fabpot still no routing.png image.

This comment has been minimized.

Copy link
@fabpot

fabpot Nov 2, 2011

Author Member

I know.

<strong>Routing</strong>
</span>
{% endblock %}

{% block panel %}
<h2>Routing for "{{ collector.pathinfo }}"</h2>

<table class="routing">
<tr>
<th>Route name</th>
<th>Pattern</th>
<th>Log</th>
</tr>
{% for trace in collector.traces %}
<tr class="{{ 1 == trace.level ? 'almost' : 2 == trace.level ? 'matches' : '' }}">
<td>{{ trace.name }}</td>
<td>{{ trace.pattern }}</td>
<td>{{ trace.log }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}

0 comments on commit 8fa061c

Please sign in to comment.