From 4d29c7555b38d346ea75ba1e7ca1d164fb8201ad Mon Sep 17 00:00:00 2001 From: alexandresalome Date: Wed, 6 Jun 2012 21:01:33 +0200 Subject: [PATCH] [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. --- .../Resources/public/css/profiler.css | 15 +++++++++++++-- .../Resources/views/Profiler/layout.html.twig | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css index 98fedff4cb..b997aa7597 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css @@ -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; -} \ No newline at end of file +} diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig index 6c8df7e4e7..2c4a0a7bf8 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig @@ -13,6 +13,7 @@
{% if profile %}
+ View all Profile for: {{ profile.method|upper }} {% if profile.method|upper in ['GET', 'HEAD'] %}