From: Stéphane Jacob Date: Sat, 21 Aug 2010 09:45:54 +0000 (+0200) Subject: Fixes link in list moderaters list (Closes #1218). X-Git-Tag: xorg/1.0.1~260 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d80b10878746f45bfc57ad22d64c01447a16c7b6;p=platal.git Fixes link in list moderaters list (Closes #1218). Signed-off-by: Stéphane Jacob --- diff --git a/templates/lists/members.tpl b/templates/lists/members.tpl index 1a56e74..14ec8c0 100644 --- a/templates/lists/members.tpl +++ b/templates/lists/members.tpl @@ -86,7 +86,7 @@ {if $owners|@count} {foreach from=$owners item=xs key=promo} - {foreach from=$xs item=x name=all} + {foreach from=$xs item=user name=all} - {if $x.p} + {if $user.p} {/if}
{if $smarty.foreach.all.first} @@ -94,20 +94,20 @@ {/if} - {if $promo && strpos($x.l, '@') === false} - {if $x.b}{icon name=error}{/if} - {$x.n} - {elseif $x.x} - {$x.n} - {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} + {if $user.n|trim}{$x.n}{else}{$user.l}{/if} + {elseif $user.n} + {$user.n} {else} - {$x.l} + {$user.l} {/if} - {$x.p} + {$user.p}