[WebProfilerBundle] Add a button "View all" in top of the page

This is a link in the toolbar to search for last queries. This actions is
often achieved and having a link in top of the page to reach the 10 last
queries seems useful.
This commit is contained in:
alexandresalome 2012-06-06 21:01:33 +02:00
parent 1541fe26e4
commit 4d29c7555b
2 changed files with 14 additions and 2 deletions

View File

@ -236,7 +236,7 @@ li {
background-color: #f6f6f6;
border-bottom: 1px solid #dfdfdf;
padding: 10px 50px;
margin-left: 250px;
margin-left: 210px;
color: #313131;
font-size: 12px;
-moz-border-radius-topright: 16px;
@ -244,6 +244,17 @@ li {
border-top-right-radius: 16px;
}
a#resume-view-all {
display: inline-block;
padding: 0.2em 0.7em;
margin-right: 0.5em;
background-color: #666;
border-radius: 16px;
color: white;
font-weight: bold;
text-decoration: none;
}
table th.value {
width: 450px;
background-color: #dfeeb8;
@ -455,4 +466,4 @@ td.main, td.menu {
background: transparent url(../images/profiler/spinner.gif) scroll no-repeat 50% 50%;
height: 30px;
display: none;
}
}

View File

@ -13,6 +13,7 @@
<div id="collector_wrapper">
{% if profile %}
<div id="resume">
<a id="resume-view-all" href="{{ path('_profiler_search', {limit: 10}) }}">View all</a>
<strong>Profile for:</strong>
{{ profile.method|upper }}
{% if profile.method|upper in ['GET', 'HEAD'] %}