|
1 | 1 | {% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
2 | 2 |
|
3 | 3 | {% block toolbar %}
|
4 |
| - {# Symfony Logo #} |
| 4 | + |
| 5 | + {# Symfony Information #} |
| 6 | + {% if 'unknown' == collector.symfonyState %} |
| 7 | + {% set block_status = '' %} |
| 8 | + {% set symfony_version_status = 'Unable to retrieve information about the Symfony version.' %} |
| 9 | + {% elseif 'eol' == collector.symfonyState %} |
| 10 | + {% set block_status = 'red' %} |
| 11 | + {% set symfony_version_status = 'This Symfony version will no longer receive security fixes.' %} |
| 12 | + {% elseif 'eom' == collector.symfonyState %} |
| 13 | + {% set block_status = 'yellow' %} |
| 14 | + {% set symfony_version_status = 'This Symfony version will only receive security fixes.' %} |
| 15 | + {% elseif 'dev' == collector.symfonyState %} |
| 16 | + {% set block_status = 'yellow' %} |
| 17 | + {% set symfony_version_status = 'This Symfony version is still in the development phase.' %} |
| 18 | + <span class="sf-toolbar-status sf-toolbar-status-yellow" title=""> |
| 19 | + {% else %} |
| 20 | + {% set block_status = '' %} |
| 21 | + {% set symfony_version_status = '' %} |
| 22 | + {% endif %} |
| 23 | + |
5 | 24 | {% set icon %}
|
6 |
| - <a href="https://symfony.com/"> |
7 |
| - <svg width="26" height="28" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" viewBox="0 0 26 28" enable-background="new 0 0 26 28" xml:space="preserve"><path fill="#010202" d="M13 0C5.8 0 0 5.8 0 13c0 7.2 5.8 13 13 13c7.2 0 13-5.8 13-13C26 5.8 20.2 0 13 0z M20 7.5 c-0.6 0-1-0.3-1-0.9c0-0.2 0-0.4 0.2-0.6c0.1-0.3 0.2-0.3 0.2-0.4c0-0.3-0.5-0.4-0.7-0.4c-2 0.1-2.5 2.7-2.9 4.8l-0.2 1.1 c1.1 0.2 1.9 0 2.4-0.3c0.6-0.4-0.2-0.8-0.1-1.3C18 9.2 18.4 9 18.7 8.9c0.5 0 0.8 0.5 0.8 1c0 0.8-1.1 2-3.3 1.9 c-0.3 0-0.5 0-0.7-0.1L15 14.1c-0.4 1.7-0.9 4.1-2.6 6.2c-1.5 1.8-3.1 2.1-3.8 2.1c-1.3 0-2.1-0.6-2.2-1.6c0-0.9 0.8-1.4 1.3-1.4 c0.7 0 1.2 0.5 1.2 1.1c0 0.5-0.2 0.6-0.4 0.7c-0.1 0.1-0.3 0.2-0.3 0.4c0 0.1 0.1 0.3 0.4 0.3c0.5 0 0.9-0.3 1.2-0.5 c1.3-1 1.7-2.9 2.4-6.2l0.1-0.8c0.2-1.1 0.5-2.3 0.8-3.5c-0.9-0.7-1.4-1.5-2.6-1.8c-0.8-0.2-1.3 0-1.7 0.4C8.4 10 8.6 10.7 9 11.1 l0.7 0.7c0.8 0.9 1.3 1.7 1.1 2.7c-0.3 1.6-2.1 2.8-4.3 2.1c-1.9-0.6-2.2-1.9-2-2.7c0.2-0.6 0.7-0.8 1.2-0.6 c0.5 0.2 0.7 0.8 0.6 1.3c0 0.1 0 0.1-0.1 0.3C6 15 5.9 15.2 5.9 15.3c-0.1 0.4 0.4 0.7 0.8 0.8c0.8 0.3 1.7-0.2 1.9-0.9 c0.2-0.6-0.2-1.1-0.4-1.2l-0.8-0.9c-0.4-0.4-1.2-1.5-0.8-2.8c0.2-0.5 0.5-1 0.9-1.4c1-0.7 2-0.8 3-0.6c1.3 0.4 1.9 1.2 2.8 1.9 c0.5-1.3 1.1-2.6 2-3.8c0.9-1 2-1.7 3.3-1.8C20 4.8 21 5.4 21 6.3C21 6.7 20.8 7.5 20 7.5z"/></svg> |
8 |
| - <span> |
9 |
| - {% if collector.applicationname %} |
10 |
| - {{ collector.applicationname }} {{ collector.applicationversion }} |
11 |
| - {% elseif collector.symfonyState is defined %} |
12 |
| - {% if 'unknown' == collector.symfonyState -%} |
13 |
| - <span class="sf-toolbar-status sf-toolbar-info-piece-additional" title="Unable to retrieve information about the Symfony version."> |
14 |
| - {%- elseif 'eol' == collector.symfonyState -%} |
15 |
| - <span class="sf-toolbar-status sf-toolbar-status-red" title="This Symfony version will no longer receive security fixes."> |
16 |
| - {%- elseif 'eom' == collector.symfonyState -%} |
17 |
| - <span class="sf-toolbar-status sf-toolbar-status-yellow" title="This Symfony version will only receive security fixes."> |
18 |
| - {%- elseif 'dev' == collector.symfonyState -%} |
19 |
| - <span class="sf-toolbar-status sf-toolbar-status-yellow" title="This Symfony version is still in the development phase."> |
20 |
| - {%- else -%} |
21 |
| - <span class="sf-toolbar-status sf-toolbar-status-green"> |
22 |
| - {%- endif -%} |
23 |
| - {{ collector.symfonyversion }}</span> |
24 |
| - {% endif %} |
25 |
| - </span> |
| 25 | + <a href="https://symfony.com/" title="{{ symfony_version_status }}"> |
| 26 | + {% if collector.applicationname %} |
| 27 | + <span class="sf-toolbar-label">{{ collector.applicationname }}</span> |
| 28 | + <span class="sf-toolbar-value">{{ collector.applicationversion }}</span> |
| 29 | + {% elseif collector.symfonyState is defined %} |
| 30 | + <span class="sf-toolbar-label">symfony</span> |
| 31 | + <span class="sf-toolbar-value">{{ collector.symfonyversion }}</span> |
| 32 | + {% endif %} |
26 | 33 | </a>
|
27 | 34 | {% endset %}
|
28 | 35 | {% set text %}
|
|
32 | 39 | </div>
|
33 | 40 | {% endif %}
|
34 | 41 | <div class="sf-toolbar-info-piece">
|
35 |
| - Symfony <b>{{ collector.symfonyversion }}</b> |
| 42 | + <a href="https://symfony.com/doc/{{ collector.symfonyversion }}/index.html" rel="help"> |
| 43 | + Read Symfony {{ collector.symfonyversion }} Docs |
| 44 | + </a> |
36 | 45 | </div>
|
| 46 | + {% if 'n/a' != collector.appname %} |
| 47 | + <div class="sf-toolbar-info-piece"> |
| 48 | + <b>Kernel name</b> |
| 49 | + <span>{{ collector.appname }}</span> |
| 50 | + </div> |
| 51 | + {% endif %} |
| 52 | + {% if 'n/a' != collector.env %} |
| 53 | + <div class="sf-toolbar-info-piece"> |
| 54 | + <b>Environment</b> |
| 55 | + <span>{{ collector.env }}</span> |
| 56 | + </div> |
| 57 | + {% endif %} |
| 58 | + {% if 'n/a' != collector.debug %} |
| 59 | + <div class="sf-toolbar-info-piece"> |
| 60 | + <b>Debug</b> |
| 61 | + <span class="{{ debug_status_class }}">{{ collector.debug ? 'en' : 'dis' }}abled</span> |
| 62 | + </div> |
| 63 | + {% endif %} |
37 | 64 | <div class="sf-toolbar-info-piece">
|
38 |
| - <a href="https://symfony.com/doc/{{ collector.symfonyversion }}/index.html" rel="help">Symfony Documentation</a> |
| 65 | + <b>Profiler token</b> |
| 66 | + <span> |
| 67 | + {% if profiler_url %} |
| 68 | + <a href="{{ profiler_url }}">{{ collector.token }}</a> |
| 69 | + {% else %} |
| 70 | + {{ collector.token }} |
| 71 | + {% endif %} |
| 72 | + </span> |
39 | 73 | </div>
|
40 | 74 | {% endset %}
|
41 |
| - {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': false } %} |
| 75 | + {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': false, 'block_name': 'config-symfony', 'block_status': block_status } %} |
42 | 76 |
|
43 | 77 | {# PHP Information #}
|
44 | 78 | {% set icon %}
|
45 | 79 | <a href="{{ path('_profiler_phpinfo') }}">
|
46 |
| - <svg width="26" height="28" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" viewBox="0 0 26 28" enable-background="new 0 0 26 28" xml:space="preserve"><g><path fill="#010202" d="M8 11.5c-0.2-0.1-0.4-0.1-0.7-0.1s-0.5 0-0.8 0c0 0-0.1 0-0.1 0c0 0-0.1 0-0.1 0c0 0-0.1 0-0.1 0 c0 0-0.1 0-0.1 0v0l-0.9 3.3c0 0 0 0 0 0c0 0 0 0 0 0c0 0 0 0 0 0c0 0 0 0 0 0c0 0 0 0 0.1 0c0 0 0.1 0 0.1 0c0.3 0 0.7 0 1 0 c0.3 0 0.6-0.1 0.8-0.2c0.2-0.1 0.4-0.3 0.6-0.5c0.2-0.3 0.3-0.6 0.4-1.1c0.1-0.4 0.1-0.7 0.1-0.9C8.3 11.7 8.1 11.6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2 0.4-0.3 0.5S22.2 14.9 22 15c-0.2 0.2-0.4 0.3-0.6 0.5c-0.2 0.1-0.4 0.2-0.6 0.3c-0.2 0.1-0.4 0.1-0.6 0.1 c-0.2 0-0.4 0-0.7 0h-1.3L17.6 18h-1.5l2.1-7.9h2.9c0.4 0 0.8 0.1 1.1 0.2c0.3 0.1 0.5 0.3 0.7 0.6c0.2 0.2 0.3 0.5 0.3 0.9 c0 0.3 0 0.7-0.1 1.1C23.1 13.1 23.1 13.3 23 13.4z"/></g></svg> |
| 80 | + <span class="sf-toolbar-label">php</span> |
| 81 | + <span class="sf-toolbar-value">{{ collector.phpversion }}</span> |
47 | 82 | </a>
|
48 | 83 | {% endset %}
|
49 | 84 | {% set text %}
|
|
63 | 98 | </div>
|
64 | 99 | {% endspaceless %}
|
65 | 100 | {% endset %}
|
66 |
| - {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': false } %} |
67 |
| - |
68 |
| - {# Environment #} |
69 |
| - {% set debug_status_class %}sf-toolbar-status sf-toolbar-status-{{ collector.debug ? 'green' : 'red' }}{% endset %} |
70 |
| - {% set icon %} |
71 |
| - <svg width="21" height="28" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" viewBox="0 0 21 28" enable-background="new 0 0 21 28" xml:space="preserve"><g><path fill="#3F3F3F" d="M5 17H1c-0.5 0-1-0.4-1-1V9c0-0.5 0.4-1 1-1h4c0.5 0 1 0.4 1 1v7C6 16.6 5.6 17 5 17z"/><path fill="#3F3F3F" d="M19 17h-4c-0.5 0-1-0.4-1-1V9c0-0.5 0.4-1 1-1h4c0.5 0 1 0.4 1 1v7C20 16.6 19.6 17 19 17z"/><path fill="#3F3F3F" d="M12.1 20h-4c-0.5 0-1-0.4-1-1v-7c0-0.5 0.4-1 1-1h4c0.5 0 1 0.4 1 1v7C13.1 19.5 12.6 20 12.1 20z"/><rect x="9.1" y="5.8" fill="#3F3F3F" width="2" height="4.5"/><rect x="16" y="17.7" fill="#3F3F3F" width="2" height="4.5"/><rect x="2.1" y="17.7" fill="#3F3F3F" width="2" height="4.5"/><rect x="9.1" y="20.7" fill="#3F3F3F" width="2" height="1.5"/><rect x="2.1" y="5.7" fill="#3F3F3F" width="2" height="1.5"/><rect x="16.1" y="5.7" fill="#3F3F3F" width="2" height="1.5"/></g></svg> |
72 |
| - <span class="sf-toolbar-info-piece-additional {{ debug_status_class }}">{{ token }}</span> |
73 |
| - {% if 'n/a' != collector.appname or 'n/a' != collector.env %} |
74 |
| - <span class="sf-toolbar-info-piece-additional-detail"> |
75 |
| - <span class="sf-toolbar-info-with-delimiter">{{ collector.appname }}</span> |
76 |
| - <span>{{ collector.env }}</span> |
77 |
| - </span> |
78 |
| - {% endif %} |
79 |
| - {% endset %} |
80 |
| - {% set text %} |
81 |
| - {% spaceless %} |
82 |
| - {% if 'n/a' != collector.appname %} |
83 |
| - <div class="sf-toolbar-info-piece"> |
84 |
| - <b>Name</b> |
85 |
| - <span>{{ collector.appname }}</span> |
86 |
| - </div> |
87 |
| - {% endif %} |
88 |
| - {% if 'n/a' != collector.env %} |
89 |
| - <div class="sf-toolbar-info-piece"> |
90 |
| - <b>Environment</b> |
91 |
| - <span>{{ collector.env }}</span> |
92 |
| - </div> |
93 |
| - {% endif %} |
94 |
| - {% if 'n/a' != collector.debug %} |
95 |
| - <div class="sf-toolbar-info-piece"> |
96 |
| - <b>Debug</b> |
97 |
| - <span class="{{ debug_status_class }}">{{ collector.debug ? 'en' : 'dis' }}abled</span> |
98 |
| - </div> |
99 |
| - {% endif %} |
100 |
| - <div class="sf-toolbar-info-piece"> |
101 |
| - <b>Token</b> |
102 |
| - <span> |
103 |
| - {% if profiler_url %} |
104 |
| - <a href="{{ profiler_url }}">{{ collector.token }}</a> |
105 |
| - {% else %} |
106 |
| - {{ collector.token }} |
107 |
| - {% endif %} |
108 |
| - </span> |
109 |
| - </div> |
110 |
| - {% endspaceless %} |
111 |
| - {% endset %} |
112 |
| - {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } %} |
| 101 | + {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': false, 'block_name': 'config-php' } %} |
113 | 102 | {% endblock %}
|
114 | 103 |
|
115 | 104 | {% block menu %}
|
|
0 commit comments