Fix inverted test.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 4 Mar 2009 22:17:06 +0000 (23:17 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 4 Mar 2009 22:17:06 +0000 (23:17 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/include/minifiche.tpl

index 6084e29..b4d1bcb 100644 (file)
   {if $withAuth}
   <div class="noprint bits">
     <div>
-      {if $registered && !$dead}
-        {if $show_action eq ajouter}
+      {if !$registered && !$dead}
+        {if $show_action eq 'ajouter'}
     <a href="carnet/notifs/add_nonins/{$user->login()}?token={xsrf_token}">{*
     *}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
         {else}
     <a href="carnet/notifs/del_nonins/{$user->login()}?token={xsrf_token}">{*
     *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
         {/if}
-      {elseif $user->state neq 'pending'}
+      {elseif $registered}
     <a href="profile/{$profile->hrid()}" class="popup2">{*
     *}{icon name=user_suit title="Afficher la fiche"}</a>
         {if !$dead}