Show email if the user has no name
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 21 Jan 2007 19:01:25 +0000 (19:01 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 21 Jan 2007 19:01:25 +0000 (19:01 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1381 839d8a87-29fc-0310-9880-83ba4fa771e5

templates/xnetgrp/annuaire.tpl

index 37e633b..4be81a9 100644 (file)
@@ -101,7 +101,7 @@ Tu peux 
       {elseif $m.x}
       <a href="https://www.polytechnique.org/marketing/public/{$m.uid}">
       {/if}
-      {if $m.femme}&bull;{/if}{$m.prenom} {$m.nom|strtoupper}
+      {if $m.femme}&bull;{/if}{if $m.prenom || $m.nom}{$m.prenom} {$m.nom|strtoupper}{else}{$m.email}{/if}
       {if $m.x}</a>{/if} 
       {if $m.admin}</strong>{/if}
       {if $m.inscrit && !$m.actif}