From: Florent Bruneau Date: Sun, 8 Feb 2009 17:19:36 +0000 (+0100) Subject: Fix notices, restore "see site as..." X-Git-Tag: xorg/1.0.0~332^2~385 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=325a641136177203d1c1145b0d8a7f87e134c58e;p=platal.git Fix notices, restore "see site as..." Signed-off-by: Florent Bruneau --- diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index 73a9a98..73d879b 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -64,10 +64,10 @@ Logo Assos - {if $xnet_type} + {if t($xnet_type)} Logo {$xnet_type} {else} - Logo {$xnet_type} + Logo institutions {/if} @@ -76,7 +76,7 @@ bandeau - {if $xnet_type} + {if t($xnet_type)} {$xnet_type} @@ -116,9 +116,10 @@ {/if} {/foreach} {/foreach} - {if $asso && $is_admin} {* WARN: this breaks "see the site as" || + {assign var=asso_id value=$asso->id} + {if $asso && $is_admin || ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') || - $smarty.session.suid.may_update[$asso->id])))} *} + $smarty.session.suid.may_update[$asso_id]))}

Voir le site comme...