<#-- Display all cities, and put a "Lettrine" representing the start letters -->
<@s.set name="i" value="0"/>
<@s.set name="lastLetter" value=""/>
<@s.iterator value="nearestCities" status="cityStatus">
<#-- <@s.if test="#lastLetter != ''">
@s.if> if is not first element -->
<@s.if test="#i % 10 == 0" >
<#-- We close the last column if it is not the first column -->
<@s.if test="#i != 0">@s.if>
<#-- We create a new column every 10 cities or so -->
@s.if>
<@s.if test="cityName.charAt(0) != #lastLetter">
<@s.if test="!(#i % 10 == 0)" >
@s.if>
<@s.set name="lastLetter" value="cityName.charAt(0)"/>
<@s.property value="cityName.charAt(0)" />
@s.if>
<#-- each city has to contain div tag -->
<@s.url id="cityUrl" action="city" namespace="/" includeParams="none">
<@s.param name="featureId" value="%{featureId}" />
@s.url>
<@s.property value="cityName" />
<#-- <@s.if test="!#cityStatus.last"> - @s.if> -->
<@s.set name="i" value="#i+1"/>
<@s.if test="#cityStatus.last">
<#-- We close the last column if it is not the first column -->
@s.if>
@s.iterator>