X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fgeneral.networking.tpl;h=aa3cd4027129aec17c4677e50cb154935fb559d7;hb=7937d89ecfc74726af9ae64d9211d53e6bbcc4e5;hp=d4d17f8d883e8c33373477db31eeb7318125f11c;hpb=4b239f6e6cb26cdd814b42f3efcbcae40fa862a4;p=platal.git diff --git a/templates/profile/general.networking.tpl b/templates/profile/general.networking.tpl index d4d17f8..aa3cd40 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-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,12 +20,19 @@ {* *} {**************************************************************************} +{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} +
  @@ -35,9 +42,14 @@ {$nw.name}
+ {if $hiddennw} + + (masqué) + {else} + {/if} {icon name=cross title="Supprimer cet élément"} @@ -45,4 +57,4 @@ -{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} +{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}