Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Removed the "Delete profiles" action from the web profiler sidebar
  • Loading branch information
javiereguiluz committed Sep 27, 2015
commit 8c47eb9be6a86078e2746e2b3d4af9ab5cea17de
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ public function panelAction(Request $request, $token)
*/
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.');
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@
{% endfor %}
</ul>
{% endif %}

<div class="module">
{{ include('@WebProfiler/Profiler/admin.html.twig', { token: token|default('') }, with_context = false) }}
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we still need this for the logout link?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. In the toolbar we use .sf-toolbar-block .sf-toolbar-info-piece a. I've tried to make the toolbar and the profiler as independent as possible.

}
#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 {
Expand Down Expand Up @@ -567,10 +550,6 @@ tr.status-warning td {
float: right;
margin-right: 10px;
}
#sidebar-admin a {
font-size: 14px;
margin-left: 10px;
}

{# Sidebar Menu
------------------------------------------------------------------------- #}
Expand Down