From 8c47eb9be6a86078e2746e2b3d4af9ab5cea17de Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 27 Sep 2015 15:39:02 +0200 Subject: [PATCH] Removed the "Delete profiles" action from the web profiler sidebar --- .../Controller/ProfilerController.php | 2 ++ .../Resources/views/Profiler/admin.html.twig | 7 ------- .../Resources/views/Profiler/layout.html.twig | 4 ---- .../views/Profiler/profiler.css.twig | 21 ------------------- 4 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/admin.html.twig diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php index 21b02190c9..8b91441f9e 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php @@ -125,6 +125,8 @@ class ProfilerController */ public function purgeAction() { + @trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED); + if (null === $this->profiler) { throw new NotFoundHttpException('The profiler must be enabled.'); } diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/admin.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/admin.html.twig deleted file mode 100644 index 431861cad6..0000000000 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/admin.html.twig +++ /dev/null @@ -1,7 +0,0 @@ -{% if token is not empty %} - -{% endif %} 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 b351cce050..41fbe54361 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig @@ -79,10 +79,6 @@ {% endfor %} {% endif %} - -
- {{ include('@WebProfiler/Profiler/admin.html.twig', { token: token|default('') }, with_context = false) }} -
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig index 46b5bb795b..376b9e054c 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig @@ -486,32 +486,15 @@ tr.status-warning td { padding-bottom: 99999px; {# needed for 'same-height columns' trick #} width: 220px; } -#sidebar a { - color: #ADD8E6; -} #sidebar .module { padding: 10px; width: 220px; } -#sidebar .module h3 { - color: #999; - font-size: 12px; - font-weight: bold; - text-transform: uppercase; - margin-bottom: 10px; -} {# Sidebar Shortcuts ------------------------------------------------------------------------- #} #sidebar #sidebar-shortcuts { background: #333; - /* needed to prevent visual issues due to the pure CSS slideToggle() */ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; width: 220px; } #sidebar #sidebar-shortcuts .shortcuts { @@ -567,10 +550,6 @@ tr.status-warning td { float: right; margin-right: 10px; } -#sidebar-admin a { - font-size: 14px; - margin-left: 10px; -} {# Sidebar Menu ------------------------------------------------------------------------- #}