|
19 | 19 | {% endif %}
|
20 | 20 |
|
21 | 21 | {% set icon %}
|
22 |
| - {% if collector.symfonyState is defined %} |
| 22 | + {% if collector.applicationname %} |
| 23 | + <span class="sf-toolbar-label">{{ collector.applicationname }}</span> |
| 24 | + <span class="sf-toolbar-value">{{ collector.applicationversion }}</span> |
| 25 | + {% elseif collector.symfonyState is defined %} |
23 | 26 | <span class="sf-toolbar-label">
|
24 | 27 | {{ include('@WebProfiler/Icon/symfony.svg') }}
|
25 | 28 | </span>
|
26 | 29 | <span class="sf-toolbar-value">{{ collector.symfonyversion }}</span>
|
27 |
| - {% elseif collector.applicationname %} |
28 |
| - <span class="sf-toolbar-label">{{ collector.applicationname }}</span> |
29 |
| - <span class="sf-toolbar-value">{{ collector.applicationversion }}</span> |
30 | 30 | {% endif %}
|
31 | 31 | {% endset %}
|
32 | 32 |
|
33 | 33 | {% set text %}
|
34 | 34 | {% if collector.applicationname %}
|
35 | 35 | <div class="sf-toolbar-info-piece">
|
36 |
| - {{ collector.applicationname }} <b>{{ collector.applicationversion }}</b> |
| 36 | + <b>{{ collector.applicationname }}</b> |
| 37 | + <span>{{ collector.applicationversion }}</span> |
37 | 38 | </div>
|
38 | 39 | {% endif %}
|
39 | 40 |
|
|
88 | 89 | <span>{{ collector.sapiName }}</span>
|
89 | 90 | </div>
|
90 | 91 |
|
| 92 | + |
91 | 93 | {% if collector.symfonyversion is defined %}
|
92 | 94 | <div class="sf-toolbar-info-piece">
|
93 | 95 | <b>Resources</b>
|
94 | 96 | <span>
|
95 |
| - <a href="https://symfony.com/doc/{{ collector.symfonyversion }}/index.html" rel="help"> |
96 |
| - Read Symfony {{ collector.symfonyversion }} Docs |
97 |
| - </a> |
| 97 | + {% if 'Silex' == collector.applicationname %} |
| 98 | + <a href="http://silex.sensiolabs.org/documentation" rel="help"> |
| 99 | + Read Silex Docs |
| 100 | + </a> |
| 101 | + {% else %} |
| 102 | + <a href="https://symfony.com/doc/{{ collector.symfonyversion }}/index.html" rel="help"> |
| 103 | + Read Symfony {{ collector.symfonyversion }} Docs |
| 104 | + </a> |
| 105 | + {% endif %} |
98 | 106 | </span>
|
99 | 107 | </div>
|
100 | 108 | {% endif %}
|
101 | 109 | {% endset %}
|
102 | 110 |
|
103 |
| - {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: false, status: block_status }) }} |
| 111 | + {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'config', status: block_status }) }} |
104 | 112 | {% endblock %}
|
105 | 113 |
|
106 | 114 | {% block menu %}
|
|
115 | 123 | {# this application is not the Symfony framework #}
|
116 | 124 | <h2>Project Configuration</h2>
|
117 | 125 |
|
118 |
| - <table> |
119 |
| - <tr> |
120 |
| - <th>Key</th> |
121 |
| - <th>Value</th> |
122 |
| - </tr> |
123 |
| - <tr> |
124 |
| - <th>Application name</th> |
125 |
| - <td>{{ collector.applicationname }}</td> |
126 |
| - </tr> |
127 |
| - <tr> |
128 |
| - <th>Application version</th> |
129 |
| - <td>{{ collector.applicationversion }}</td> |
130 |
| - </tr> |
131 |
| - <tr> |
132 |
| - <th>Based on</th> |
133 |
| - <td>Symfony {{ collector.symfonyversion }}</td> |
134 |
| - </tr> |
135 |
| - </table> |
| 126 | + <div class="metrics"> |
| 127 | + <div class="metric"> |
| 128 | + <span class="value">{{ collector.applicationname }}</span> |
| 129 | + <span class="label">Application name</span> |
| 130 | + </div> |
| 131 | + |
| 132 | + <div class="metric"> |
| 133 | + <span class="value">{{ collector.applicationversion }}</span> |
| 134 | + <span class="label">Application version</span> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | + |
| 138 | + <p> |
| 139 | + Based on <a class="text-bold" href="https://symfony.com">Symfony {{ collector.symfonyversion }}</a> |
| 140 | + </p> |
136 | 141 | {% else %}
|
137 | 142 | <h2>Symfony Configuration</h2>
|
138 | 143 |
|
|
0 commit comments