From c3a9fa2b82672386701a660d5d6900a5e64c923e Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 9 Mar 2011 10:40:26 +0100 Subject: [PATCH] If a group has no web site, redirects to its Xnet page from profiles. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- templates/profile/profile.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 2df497b..c5a2517 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -59,7 +59,10 @@ $($.closeOnEsc); {assign var=groups value=$owner->groups(true,true)} {if $groups|@count}
Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X :
- {foreach from=$groups item=group name=groups}{if !$smarty.foreach.groups.first}, {/if}{$group.nom}{/foreach} + {foreach from=$groups item=group name=groups} + {if !$smarty.foreach.groups.first}, {/if} + {$group.nom} + {/foreach}
{/if} {/if} -- 2.1.4