X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnet%2Fskin.tpl;h=b8a29af3da2270650e791a5f8085e2f77147e947;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=9326e032606f8ba2c90acd4769a66008c5966900;hpb=34ade5a639500e0a43dfb5ccff4ecbac5fbda919;p=platal.git diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index 9326e03..b8a29af 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -40,12 +40,6 @@ {include core=plpage.header.tpl} - - {javascript name=overlib} {include file=skin/common.bandeau.head.tpl} @@ -64,10 +58,10 @@ Logo Assos - {if $xnet_type} + {if t($xnet_type)} Logo {$xnet_type} {else} - Logo {$xnet_type} + Logo institutions {/if} @@ -76,13 +70,13 @@ bandeau - {if $xnet_type} + {if t($xnet_type)} {$xnet_type} - {if $asso} + {if t($asso)} - {if $asso->site} + {if t($asso->site)} LOGO {else} LOGO @@ -116,14 +110,16 @@ {/if} {/foreach} {/foreach} - {if $asso && $is_admin} {* WARN: this breaks "see the site as" || - ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') || - $smarty.session.suid.may_update[$asso->id])))} *} -

Voir le site comme...

+ {if t($asso)}{assign var=asso_id value=$asso->id}{/if} + {if t($smarty.session.suid)}{assign var=suid value=true}{else}{assign var=suid value=false}{/if} + {if $asso && $is_admin || + ($suid && ($smarty.session.suid.perms->hasFlag('admin') || + $smarty.session.suid.may_update[$asso_id]))} +

Voir le site comme…