Преглед изворни кода

[SecurityBundle] made some tweaks to the security profiler panel

Fabien Potencier пре 14 година
родитељ
комит
39504fc98d

+ 14 - 5
src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig

@@ -26,11 +26,20 @@
 {% block panel %}
     <h2>Security</h2>
     {% if collector.user %}
-        <p>
-            Username: <strong>{{ collector.user }}</strong><br />
-            Authenticated? <strong>{{ collector.authenticated ? 'yes' : 'no' }}</strong><br />
-            Roles: <strong>{{ collector.roles|yaml_encode }}</strong>
-        </p>
+        <table>
+            <tr>
+                <th>Username</th>
+                <td>{{ collector.user }}</td>
+            </tr>
+            <tr>
+                <th>Authenticated?</th>
+                <td>{{ collector.authenticated ? 'yes' : 'no' }}</td>
+            </tr>
+            <tr>
+                <th>Roles</th>
+                <td>{{ collector.roles|yaml_encode }}</td>
+            </tr>
+        </table>
     {% elseif collector.enabled %}
         <p>
             <em>No token</em>