Fix SUID banner on skin OpenWeb
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 16 Apr 2007 21:22:02 +0000 (21:22 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 16 Apr 2007 21:22:02 +0000 (21:22 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1710 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/css/openweb.css
templates/skin/openweb.tpl

index 07b8567..b2abd8b 100644 (file)
@@ -473,14 +473,27 @@ div.adresse div.titre { color: purple; }
 .backtrace:hover div.hide { display: block }
 .backtrace h1 { margin: 0px; }
 
-#suid {
-    color: red;
-    background: #ffc0cb;
-    width: 100%;
-    font-weight: bold;
-}
-#suid td { padding: 2px; }
-#suid a { color: red; }
+#suid { 
+    color: red; 
+    background: #ffc0cb; 
+    width: auto; 
+    font-weight: bold; 
+    text-align: center; 
+} 
+#suid a { 
+    color: red; 
+    background: inherit; 
+    text-decoration: none; 
+    display: block; 
+} 
+#suid:hover { 
+    color: red; 
+    background: #ffffcb; 
+} 
+#suid a:hover { 
+    color: #ff7000; 
+    background: inherit; 
+} 
 
 table#body {
     color: #000;
index 1b1b3b3..2387b22 100644 (file)
   <body>
     {include file=skin/common.devel.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 !$simple}
+      {include file=skin/common.bandeau.tpl}
     {/if}
+    {if $smarty.session.suid} 
+    <div id="suid"> 
+      <a href="exit"> 
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms->flags()}) 
+      </a> 
+    </div> 
+    {/if} 
 
   {if $simple}
 
@@ -47,8 +47,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">