Don't show an empty identity if neither name nor firstname are defined for
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 9 Dec 2007 17:41:46 +0000 (18:41 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 9 Dec 2007 17:41:46 +0000 (18:41 +0100)
the user.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/xnetevents/admin.tpl

index 3a86804..722a28d 100644 (file)
@@ -84,7 +84,11 @@ Ils ont payé mais ont oublié de s'inscrire :
   <tr class="pair">
     <td>
       <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
-      {$m.prenom} {$m.nom}
+        {if !$m.prenom && !$m.nom}
+        {$m.email}
+        {else}
+        {$m.prenom} {$m.nom}
+        {/if}
       </a>
     </td>
     <td>{$m.promo}</td>
@@ -138,7 +142,7 @@ Ils ont payé mais ont oublié de s'inscrire :
   <tr>
     <td>
       {if $is_admin}<a href="javascript:remplitAuto('{$m.email}')">{/if}
-        {if $m.femme}&bull;{/if}{$m.prenom} {$m.nom}
+        {if $m.femme}&bull;{/if}{if !$m.prenom && !$m.nom}{$m.email}{else}{$m.prenom} {$m.nom}{/if}
       {if $is_admin}</a>{/if}
     </td>
     <td>{$m.promo}</td>