From: Stéphane Jacob Date: Wed, 9 Mar 2011 09:40:26 +0000 (+0100) Subject: If a group has no web site, redirects to its Xnet page from profiles. X-Git-Tag: xorg/1.1.0~41 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c3a9fa2b82672386701a660d5d6900a5e64c923e;p=platal.git If a group has no web site, redirects to its Xnet page from profiles. Signed-off-by: Stéphane Jacob --- 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}