Files
Phraseanet/templates/web/geonames/city_list.html.twig
Romain Neutron e7421e1fdd Fix twig tags
2013-12-03 20:02:39 +01:00

10 lines
445 B
Twig

{% for geoname in geonames %}
<div class="box {% if loop.index is odd %}boxI{% else %}boxP{% endif %}" id="geo_{{geoname.geoname_id}}">
<div>{{geoname.title_highlighted|raw}}, {{geoname.country_highlighted|raw}}</div>
{% if geoname.region %}<div>{{geoname.region}}</div>{% endif %}
</div>
{% endfor %}
{% if geonames|length == 0 %}
<div class='box boxI unselectable'> <div>{{ 'No matches found' | trans }}</div></div>
{% endif %}