From 8854744955ccd8d1909107d0ab6bb000d9cff758 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 9 Dec 2007 18:41:46 +0100 Subject: [PATCH] Don't show an empty identity if neither name nor firstname are defined for the user. Signed-off-by: Florent Bruneau --- templates/xnetevents/admin.tpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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} -- 2.1.4