Merge remote branch 'origin/platal-0.10.2'
[platal.git] / templates / skin / sharky.tpl
index 4696bc4..485b9dc 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
     {include file=skin/common.bandeau.head.tpl}
   </head>
   <body>
-    {include file=skin/common.devel.tpl}
+    {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.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
-    {/if}
-
-  {if $simple}
-
-    <div id="content">
-      {include file="skin/common.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>
@@ -65,7 +58,7 @@
         {include file=skin/common.menu.tpl}
         </td>
         <td id="content">
-        {include file="skin/common.content.tpl"}
+        {include core=plpage.content.tpl}
         </td>
       </tr>
       <tr>