X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fdeco.tpl;h=2dec241110e7e015157d356e0b2191b90d4c9581;hb=e9a46d1a6839b5efc9a651a601fca80b9af70e7f;hp=091da7d549d3eca1ed31016b385b54dbf023fe39;hpb=8230e9f8eff954fb1103c8bdcf0d22557d419ae7;p=platal.git diff --git a/templates/profile/deco.tpl b/templates/profile/deco.tpl index 091da7d..2dec241 100644 --- a/templates/profile/deco.tpl +++ b/templates/profile/deco.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 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,23 +20,29 @@ {* *} {**************************************************************************} +{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}
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}