Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebProfilerBundle] Add shortcuts to the panels in the toolbar
- Loading branch information
Showing
10 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 18 additions & 10 deletions
28
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
{% set style = '' %} | ||
{% if status is defined %} | ||
{% if 'error' == status %} | ||
{% set style = 'background-color: #f66;' %} | ||
{% elseif 'warning' == status %} | ||
{% set style = 'background-color: #fa2;' %} | ||
{% endif %} | ||
{% if link %} | ||
{% set icon %} | ||
{% if 'config' == name %} | ||
<a href="{{ path('_profiler', { 'token': token}) }}">{{ icon }}</a> | ||
{% else %} | ||
<a href="{{ path('_profiler_panel', { 'token': token, 'panel': name }) }}">{{ icon }}</a> | ||
{% endif %} | ||
{% endset %} | ||
{% endif %} | ||
{% if 'info' == status|default('info') %} | ||
{% set style = '' %} | ||
{% elseif 'warning' == status %} | ||
{% set style = 'background-color: #fa2;' %} | ||
{% else %} | ||
{% set style = 'background-color: #f66;' %} | ||
{% endif %} | ||
<span style="{{ style }}white-space:nowrap; color:#2f2f2f; display:inline-block; min-height:24px; border-right:1px solid #cdcdcd; padding:5px 10px 5px 6px; "> | ||
{% if icon is defined %}{{ icon }}{% endif %} | ||
{% if text is defined %}{{ text }}{% endif %} | ||
</span> | ||
{{ icon|default('') }} | ||
{{ text|default('') }} | ||
</span> |