Only display link to referent page on private view.
authorStéphane Jacob <sj@m4x.org>
Wed, 11 May 2011 08:55:05 +0000 (10:55 +0200)
committerStéphane Jacob <sj@m4x.org>
Wed, 11 May 2011 08:55:05 +0000 (10:55 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/profile/profile.tpl

index bb33904..823f592 100644 (file)
@@ -172,7 +172,7 @@ $($.closeOnEsc);
 
       {$profile->promo('details')}
 
-      {if $logged && $profile->mentor_expertise}
+      {if $logged && $view eq 'private' && $profile->mentor_expertise}
       [<a href="referent/{$profile->hrid()}" class='popup2'>Ma fiche référent</a>]
       {/if}