From: Florent Bruneau Date: Wed, 4 Mar 2009 22:17:06 +0000 (+0100) Subject: Fix inverted test. X-Git-Tag: xorg/1.0.0~332^2~348 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=486d15fb147bfd5e2b2ff71b22ad5b2ca0e43878;p=platal.git Fix inverted test. Signed-off-by: Florent Bruneau --- diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 6084e29..b4d1bcb 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -69,15 +69,15 @@ {if $withAuth}
- {if $registered && !$dead} - {if $show_action eq ajouter} + {if !$registered && !$dead} + {if $show_action eq 'ajouter'} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} - {elseif $user->state neq 'pending'} + {elseif $registered} {* *}{icon name=user_suit title="Afficher la fiche"} {if !$dead}