X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fgeneral.networking.tpl;h=7636aee764b6a4aa0439d1cb33f7865b713ba6c4;hb=245923e335d0da5bec9495991a7846be9f0563ab;hp=e7f7f28b2c8117ba502b7cff2a79d2993a317658;hpb=d1a2252ae9275f499f3a1d843f540ae5aeea63a9;p=platal.git diff --git a/templates/profile/general.networking.tpl b/templates/profile/general.networking.tpl index e7f7f28..7636aee 100644 --- a/templates/profile/general.networking.tpl +++ b/templates/profile/general.networking.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,26 +20,40 @@ {* *} {**************************************************************************} +{if !hasPerm('directory_private') && ($nw.pub eq 'private') && !empty($nw.address|smarty:nodefaults)} +{assign var=hiddennw value=true} +{else} +{assign var=hiddennw value=false} +{/if} + - - - - {icon name="flag_green" title="site public"} -   - - - {nw.name} - {$nw.name} - - - - - {icon name=cross title="Supprimer cet élément"} - + +
+ + +   + + + {$nw.name} + {$nw.name} +
+
+ {if $hiddennw} + + (masqué) + {else} + + {/if} + + {icon name=cross title="Supprimer cet élément"} + +