-<div class="contact {if (!$c.inscrit && $smarty.session.auth ge AUTH_COOKIE) || $c.dcd}grayed{/if}"
- {if $c.inscrit}{if $smarty.session.auth ge AUTH_COOKIE}title="fiche mise à jour le {$c.date|date_format}"{/if}{/if}>
+{assign var=dead value=$profile->deathdate}
+{if $smarty.session.auth ge AUTH_COOKIE}
+ {assign var=withAuth value=true}
+ {assign var=user value=$profile->owner()}
+ {if $user == null}
+ {assign var=hasowner value=false}
+ {assign var=registered value=false}
+ {else}
+ {assign var=hasowner value=true}
+ {if $user->state neq 'pending'}
+ {assign var=registered value=true}
+ {else}
+ {assign var=registered value=false}
+ {/if}
+ {/if}
+{else}
+ {* Without auth, all profiles appear as registered and with owner *}
+ {assign var=hasowner value=true}
+ {assign var=registered value=true}
+ {assign var=withAuth value=false}
+{/if}
+
+
+<div class="contact {if !$registered || $dead }grayed{/if}"
+ {if $registered}title="fiche mise à jour le {$profile->last_change|date_format}"{/if}>