Fix SU on skin Sharky.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 12 Dec 2008 13:52:09 +0000 (14:52 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 12 Dec 2008 13:52:37 +0000 (14:52 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/skin/sharky.tpl

index 60c4962..7701206 100644 (file)
   </head>
   <body>
     {include core=plpage.devel.tpl}
+    {if $simple}
+      <div id="content">
+        {include core=plpage.content.tpl}
+      </div>
+    {else}
 
+    {include file=skin/common.bandeau.tpl}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.hruid})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
-    {/if}
-
-  {if $simple}
-
-    <div id="content">
-      {include core=plpage.content.tpl}
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.hruid} ({$smarty.session.perms->flags()})
+      </a>
     </div>
-
-  {else}
-
-    {include file=skin/common.bandeau.tpl}
+    {/if}
 
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>