Profiler View Latest should preserve all the current query parameters

* Restore View Latest button
* In order to fit into the horizontal space available, shorten the names of the Latest Profiles and View Latest buttons and adjust the buttons' margin and padding.
This commit is contained in:
John Bafford 2015-07-24 14:53:39 -04:00
parent 3bea01bd0d
commit dc6ee81196
2 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,8 @@
<span class="icon">{{ include('@WebProfiler/Icon/menu.svg') }}</span>
</a>
<a class="btn btn-sm" href="{{ path('_profiler_search', { limit: 10 }) }}">Latest profiles</a>
<a class="btn btn-sm" href="{{ path('_profiler_search', { limit: 10 }) }}">Last 10</a>
<a class="btn btn-sm" href="{{ path('_profiler', { token: 'latest' }|merge(request.query.all)) }}">Latest</a>
<a class="sf-toggle btn btn-sm" data-toggle-selector="#sidebar-search" {% if tokens is defined or about is defined %}data-toggle-initial="display"{% endif %}>
{{ include('@WebProfiler/Icon/search.svg') }} <span class="hidden-small">Search</span>

View File

@ -512,7 +512,10 @@ tr.status-warning td {
color: #F5F5F5;
}
#sidebar #sidebar-shortcuts .btn + .btn {
margin-left: 10px;
margin-left: 5px;
}
#sidebar #sidebar-shortcuts .btn {
padding: .5em .6em;
}
{# Sidebar Search