]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/default/_city.html.twig
Update index name
[airbundle] / Resources / views / default / _city.html.twig
1 {# Display cities #}
2 {% if cities is defined and cities %}
3 <article>
4 <header>
5 <h2><a href="{{ path('rapsysair_city') }}" title="{% trans %}Libre Air cities{% endtrans %}">{% trans %}Cities{% endtrans %}</a></h2>
6 <p>{% trans %}Libre Air city list{% endtrans%}
7 </header>
8 <div class="panel">
9 {% if multimap is defined and multimap %}
10 <div class="multimap">
11 <a href="{{ multimap.link }}" title="{{ multimap.caption }}">
12 <figure>
13 <img src="{{ multimap.src }}" alt="{{ multimap.caption }}" width="{{ multimap.width }}" height="{{ multimap.height }}" />
14 <figcaption>{{ multimap.caption }}</figcaption>
15 </figure>
16 </a>
17 </div>
18 {% endif %}
19 <div class="grid{% if cities|length > 1 %} two{% endif %}">
20 {% for id, city in cities %}
21 <article>
22 <header>
23 <h3><a href="{{ city.link }}">{{ city.city }} ({{ city.id }})</a></h3>
24 </header>
25 {# {% if city.locations is defined and city.locations %}
26 <div class="panel grid">
27 {% for id, location in city.locations %}
28 <article class="cell">
29 <h4>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}">{{ location.title }}</a></h4>
30 </article>
31 {% endfor %}
32 </div>
33 {% endif %} #}
34 {% if city.locations is defined and city.locations %}
35 <ul>
36 {% for id, location in city.locations %}
37 <li><a href="{{ location.link }}">{% if multimap is defined and multimap %}{{ id }} {% endif %}{{ location.title }}</a></li>
38 {% endfor %}
39 </ul>
40 {% endif %}
41 </article>
42 {% endfor %}
43 </div>
44 </div>
45 </article>
46 {% endif %}