From f6c626bd232a2c07cb0e57281c50cce15cc54073 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 16 Jul 2010 01:23:10 +0200 Subject: [PATCH] Adds links for broken retrieval in xnet list et directory (Closes #1194). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- plugins/function.profile.php | 3 +++ templates/lists/members.tpl | 23 +++++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/plugins/function.profile.php b/plugins/function.profile.php index a355f8f..77909bd 100644 --- a/plugins/function.profile.php +++ b/plugins/function.profile.php @@ -47,6 +47,9 @@ function smarty_function_profile($params, &$smarty) $name = '' . $name . ''; } } + if ($user->lost) { + $name .= ' Patte cassée'; + } if ($with_groupperms && $user instanceof User && $user->group_perms == 'admin' && !empty($name)) { $name = '' . $name . ''; } diff --git a/templates/lists/members.tpl b/templates/lists/members.tpl index adaa262..8e66640 100644 --- a/templates/lists/members.tpl +++ b/templates/lists/members.tpl @@ -139,8 +139,8 @@ - {foreach from=$members item=xs key=promo} - {foreach from=$xs item=x name=all} + {foreach from=$members item=users key=promo} + {foreach from=$users item=user} {if $smarty.foreach.all.first} @@ -148,20 +148,19 @@ {/if} - {if $promo && strpos($x.l, '@') === false} - {if $x.b}{icon name=error}{/if} - {$x.n} - {elseif $x.x} - {if $x.n|trim}{$x.n}{else}{$x.l}{/if} - {elseif $x.n} - {$x.n} + {if $promo && $user.x} + {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} - {if $x.p} + {if $user.p} - {$x.p} + {$user.p} {/if} -- 2.1.4