From: Florent Bruneau Date: Thu, 15 Nov 2007 18:23:12 +0000 (+0100) Subject: Closes #729: Fix positioning of addresses on public profile. X-Git-Tag: xorg/0.9.16~204 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=94c4f7a13fe97776f279304eb607398fc0ebd864;p=platal.git 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 --- 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}