Fixes link in list moderaters list (Closes #1218).
authorStéphane Jacob <sj@m4x.org>
Sat, 21 Aug 2010 09:45:54 +0000 (11:45 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 21 Aug 2010 09:45:54 +0000 (11:45 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/lists/members.tpl

index 1a56e74..14ec8c0 100644 (file)
@@ -86,7 +86,7 @@
 {if $owners|@count}
 <table class='tinybicol' cellpadding='0' cellspacing='0'>
   {foreach from=$owners item=xs key=promo}
-  {foreach from=$xs item=x name=all}
+  {foreach from=$xs item=user name=all}
   <tr>
     <td class='titre'>
       {if $smarty.foreach.all.first}
       {/if}
     </td>
     <td>
-      {if $promo && strpos($x.l, '@') === false}
-      {if $x.b}<a href="https://www.polytechnique.org/marketing/broken/{$x.l}">{icon name=error}</a>{/if}
-      <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
-      {elseif $x.x}
-      <a href="{$platal->ns}member/{$x.x}">{$x.n}</a>
-      {elseif $x.n}
-      {$x.n}
+      {if $promo && $user.x}
+      {if $user.b}{assign var=lostUsers value=true}{/if}
+      {profile user=$user.x promo=false}
+      {elseif $user.x}
+      <a href="{$platal->ns}member/{$user.x}">{if $user.n|trim}{$x.n}{else}{$user.l}{/if}</a>
+      {elseif $user.n}
+      {$user.n}
       {else}
-      {$x.l}
+      {$user.l}
       {/if}
     </td>
-    {if $x.p}
+    {if $user.p}
     <td class="right">
-      {$x.p}
+      {$user.p}
     </td>
     {/if}
   </tr>