X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fdeco.tpl;fp=templates%2Fprofile%2Fdeco.tpl;h=2dec241110e7e015157d356e0b2191b90d4c9581;hb=566967dc73a3e219dbef0afc004291a29f36d8cc;hp=334ca3263d4b9cf90e72deab5117ba47783b9cca;hpb=b9fc85ac9143f6829acbd3bdc55854830229eb9f;p=platal.git diff --git a/templates/profile/deco.tpl b/templates/profile/deco.tpl index 334ca32..2dec241 100644 --- a/templates/profile/deco.tpl +++ b/templates/profile/deco.tpl @@ -20,16 +20,22 @@ {* *} {**************************************************************************} +{if !hasPerm('directory_private') && ($medals_pub eq 'private') && ($medals|@count neq 0)} +{assign var=hidden_medal value=true} +{else} +{assign var=hidden_medal value=false} +{/if} +{if !$hidden_medal} +{/if}
-
- Médailles, Décorations, Prix… + Médailles, Décorations, Prix…{if $hidden_medal} (masqué){/if}
@@ -59,6 +65,7 @@

{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}