]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/default/_city.html.twig
Fix coalesce warning
[airbundle] / Resources / views / default / _city.html.twig
index e03c14c6dab7b75543a8dce76a69889a5d30a2f7..5119a509651129a2229106fe337dd54e5dc19418 100644 (file)
@@ -1,8 +1,8 @@
 {# Display cities #}
 {% if cities is defined and cities %}
-       <article class="city">
+       <article>
                <header>
-                       <h2><a href="{{ path('rapsys_air_city') }}" title="{% trans %}Libre Air cities{% endtrans %}">{% trans %}Cities{% endtrans %}</a></h2>
+                       <h2><a href="{{ path('rapsysair_city') }}" title="{% trans %}Libre Air cities{% endtrans %}">{% trans %}Cities{% endtrans %}</a></h2>
                        <p>{% trans %}Libre Air city list{% endtrans%}
                </header>
                <div class="panel">
@@ -18,7 +18,7 @@
                        {% endif %}
                        <div class="grid{% if cities|length > 1 %} two{% endif %}">
                                {% for id, city in cities %}
-                                       <article class="cell">
+                                       <article>
                                                <header>
                                                        <h3><a href="{{ city.link }}">{{ city.city }} ({{ city.id }})</a></h3>
                                                </header>
@@ -34,7 +34,7 @@
                                                {% if city.locations is defined and city.locations %}
                                                        <ul>
                                                                {% for id, location in city.locations %}
-                                                                       <li>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}">{{ location.title }}</a></li>
+                                                                       <li><a href="{{ location.link }}">{% if multimap is defined and multimap %}{{ id }} {% endif %}{{ location.title }}</a></li>
                                                                {% endfor %}
                                                        </ul>
                                                {% endif %}