X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fbase.tpl;h=53ba85e14de717883a35e827a5e0877f428c9684;hb=81120a6fae8573d4d333ab9009f57efa81b55c7e;hp=b9cfbdb003a8b1c59192fe798d47bb87308800c8;hpb=9f5bd98e936d8cef7ca9f774eeef64dbb8a1b079;p=platal.git diff --git a/templates/profile/base.tpl b/templates/profile/base.tpl index b9cfbdb..53ba85e 100644 --- a/templates/profile/base.tpl +++ b/templates/profile/base.tpl @@ -20,16 +20,22 @@ {* *} {**************************************************************************} +{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 n'importe quel internaute, - l'AX ou - les X. + {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 name="profile_ex_pub"} + {include file="include/flags.radio.tpl" disabled=true withtext=true val="novalue" name="profile_ex_pub"}
{include file=$profile_page}