X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fbase.tpl;h=cd11e4051effeef8b0f4930a5dd06929a63ca1ff;hb=5b48ebf46ef939d701852d2117bbcf308036027c;hp=addb55ba1a491a8cb4bbe3e1b54da3bb08d3946a;hpb=be6ab042d1dc34d9e42557281b48dd8da400231b;p=platal.git diff --git a/templates/profile/base.tpl b/templates/profile/base.tpl index addb55b..cd11e40 100644 --- a/templates/profile/base.tpl +++ b/templates/profile/base.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,21 +20,32 @@ {* *} {**************************************************************************} +{assign var=isMe value=$smarty.session.user->isMyProfile($profile)} +{if hasPerm('directory_private')} +{assign var=viewPrivate value=true} +{/if} +
+ {xsrf_token_field}
- {icon name=information title="Voir ma fiche"} Tu peux consulter ta fiche telle que la - voient les X, - l'AX ou - n'importe quel internaute. - {include file="include/flags.radio.tpl" notable=true disabled=true name="profile_ex_pub"} + {icon name=information title="Voir ma fiche"} Tu peux consulter + {if $smarty.session.user->isMyProfile($profile)}ta{else}cette{/if} fiche telle que la + voient n'importe quel internaute, + l'AX{if hasPerm('directory_private')}ou + les X{/if}. +
+
+ {include file="include/flags.radio.tpl" disabled=true withtext=true val="novalue" name="profile_ex_pub"}
{include file=$profile_page}
-
+
+ {if $current neq count($lookup)-1} + {/if}