From: Florent Bruneau Date: Sun, 9 Dec 2007 17:41:46 +0000 (+0100) Subject: Don't show an empty identity if neither name nor firstname are defined for X-Git-Tag: xorg/0.9.16~192 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8854744955ccd8d1909107d0ab6bb000d9cff758;p=platal.git Don't show an empty identity if neither name nor firstname are defined for the user. Signed-off-by: Florent Bruneau --- diff --git a/templates/xnetevents/admin.tpl b/templates/xnetevents/admin.tpl index 3a86804..722a28d 100644 --- a/templates/xnetevents/admin.tpl +++ b/templates/xnetevents/admin.tpl @@ -84,7 +84,11 @@ Ils ont payé mais ont oublié de s'inscrire : - {$m.prenom} {$m.nom} + {if !$m.prenom && !$m.nom} + {$m.email} + {else} + {$m.prenom} {$m.nom} + {/if} {$m.promo} @@ -138,7 +142,7 @@ Ils ont payé mais ont oublié de s'inscrire : {if $is_admin}{/if} - {if $m.femme}•{/if}{$m.prenom} {$m.nom} + {if $m.femme}•{/if}{if !$m.prenom && !$m.nom}{$m.email}{else}{$m.prenom} {$m.nom}{/if} {if $is_admin}{/if} {$m.promo}