From: x2003bruneau Date: Mon, 16 Apr 2007 21:22:02 +0000 (+0000) Subject: Fix SUID banner on skin OpenWeb X-Git-Tag: xorg/0.9.14~80 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fc10da9a3e2cf019a4c6722288e2f063e3ec1728;p=platal.git Fix SUID banner on skin OpenWeb git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1710 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/htdocs/css/openweb.css b/htdocs/css/openweb.css index 07b8567..b2abd8b 100644 --- a/htdocs/css/openweb.css +++ b/htdocs/css/openweb.css @@ -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; diff --git a/templates/skin/openweb.tpl b/templates/skin/openweb.tpl index 1b1b3b3..2387b22 100644 --- a/templates/skin/openweb.tpl +++ b/templates/skin/openweb.tpl @@ -28,16 +28,16 @@ {include file=skin/common.devel.tpl} - {if $smarty.session.suid} - - - - -
- {$smarty.session.suid} ({$smarty.session.forlife}) - [exit] -
+ {if !$simple} + {include file=skin/common.bandeau.tpl} {/if} + {if $smarty.session.suid} +
+ + Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms->flags()}) + +
+ {/if} {if $simple} @@ -47,8 +47,6 @@ {else} - {include file=skin/common.bandeau.tpl} -