From 94c4f7a13fe97776f279304eb607398fc0ebd864 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 15 Nov 2007 19:23:12 +0100 Subject: [PATCH] Closes #729: Fix positioning of addresses on public profile. Use iteration number instead of internal id of the addresses to select left or right. Signed-off-by: Florent Bruneau --- ChangeLog | 3 +++ templates/profile/profile.tpl | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ffbace2..fbf7dbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ New: Bug/Wish: + * Profile: + - #729: Fix positioning of addresses on public profile -FRU + * XnetGrp: - #732: Adapt subscription text to sex -FRU - #735: Encoding of list description in member edition form -FRU diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 43c3e9b..1a2e897 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -131,8 +131,8 @@ function chgMainWinLoc(strPage) {if $x.adr}

Contact :

- {foreach from=$x.adr item="address" key="i" name=adresses} - {if $i is odd} + {foreach from=$x.adr item="address" name=adresses} + {if $smarty.foreach.adresses.iteration is even} {assign var=pos value="right"} {else} {assign var=pos value="left"} @@ -147,7 +147,7 @@ function chgMainWinLoc(strPage) {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" for="`$x.prenom` `$x.nom`" pos=$pos} {/if} - {if $i is odd}
{/if} + {if $smarty.foreach.adresses.iteration is even}
{/if} {/foreach}
{/if} -- 2.1.4