No vcard on profile of dead person (Closes #752)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 21 Dec 2007 20:29:33 +0000 (21:29 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 21 Dec 2007 20:31:21 +0000 (21:31 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
ChangeLog
templates/profile/profile.tpl

index fc2c82f..c4dacd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@ Bug/Wish:
     * Profile:
         - #729: Fix positioning of addresses on public profile             -FRU
         - #742: Sub domain was hidden when editing profile                 -FRU
+        - #752: Don't show vcard link on profile when the person is dead   -FRU
 
     * Search:
         - #741: Mentor search in advanced search                           -FRU
index d255e01..c3c8433 100644 (file)
@@ -62,8 +62,8 @@ function chgMainWinLoc(strPage)
       {/if}
       {if $x.web}&nbsp;<a href="{$x.web}">{icon name="world_go" title="Site Web"}</a>{/if}
       {if $logged}
-      &nbsp;<a href="vcard/{$x.forlife}.vcf">{*
-        *}{icon name=vcard title="Afficher la carte de visite"}</a>
+      &nbsp;{if !$x.dcd}<a href="vcard/{$x.forlife}.vcf">{*
+        *}{icon name=vcard title="Afficher la carte de visite"}</a>{/if}
       {if !$x.is_contact}
       <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&amp;user={$x.forlife}')">
         {icon name=add title="Ajouter à mes contacts"}</a>