Fix title of the member edition page if no name is defined.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 28 Jun 2008 12:21:26 +0000 (14:21 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 28 Jun 2008 12:21:26 +0000 (14:21 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/xnetgrp/membres-edit.tpl

index 0dc6347..76c8045 100644 (file)
@@ -47,7 +47,7 @@
 </p>
 
 <h2>
-  Ă‰dition du profil de {$user.prenom} {$user.nom}
+  Ă‰dition du profil de {if "`$user.prenom` `$user.nom`"|trim}{$user.prenom} {$user.nom}{else}{$user.email}{/if}
   {if $user.origine eq 'X'}
   (X{$user.promo})
   <a href="https://www.polytechnique.org/profile/{$user.alias}">{icon name=user_suit title="fiche"}</a>