]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/location/cities.html.twig
Fix header comment
[airbundle] / Resources / views / location / cities.html.twig
index 54e869004dcf0db7b592823fd8c9a31842ba4b04..80701cbeaa095a475af6318208f6e439525b430f 100644 (file)
@@ -1,19 +1,18 @@
-{% extends '@RapsysAir/body.html.twig' %}
+{% extends '@RapsysAir/base.html.twig' %}
 {% block content %}
 {% block content %}
-       <article id="dashboard" class="city">
+       <article>
                <header>
                <header>
-                       <h2><a href="{{ canonical }}">{{ title }}</a></h2>
-                       <p>{{ description }}</p>
+                       <h2>{{ description }}</h2>
                </header>
                <div class="panel">
                        {% if cities is defined and cities %}
                </header>
                <div class="panel">
                        {% if cities is defined and cities %}
-                               <div class="grid{% if cities|length > 1%} two{% endif %}">
+                               <div class="grid">
                                        {% for id, city in cities %}
                                        {% for id, city in cities %}
-                                               <article class="cell">
+                                               <article>
                                                        <header>
                                                                <h3><a href="{{ city.link }}">{{ city.city }} ({{ city.id }})</a></h3>
                                                        </header>
                                                        <header>
                                                                <h3><a href="{{ city.link }}">{{ city.city }} ({{ city.id }})</a></h3>
                                                        </header>
-                                                       <div class="panel grid{% if cities|length > 1%} two{% else %} three{% endif %}">
+                                                       <div class="panel">
                                                                {% if city.multimap is defined and city.multimap %}
                                                                        <div class="multimap">
                                                                                <a href="{{ city.multimap.link }}" title="{{ city.multimap.caption }}">
                                                                {% if city.multimap is defined and city.multimap %}
                                                                        <div class="multimap">
                                                                                <a href="{{ city.multimap.link }}" title="{{ city.multimap.caption }}">
                                                                                </a>
                                                                        </div>
                                                                {% endif %}
                                                                                </a>
                                                                        </div>
                                                                {% endif %}
-                                                               {% for id, location in city.locations %}
-                                                                       <article class="cell">
-                                                                               <h4>{% if city.multimap is defined and city.multimap %}{{ id }} {% endif %}<a href="{{ location.link }}">{{ location.title }}</a></h4>
-                                                                       </article>
-                                                               {% endfor %}
+                                                               <ul class="grid">
+                                                                       {% for id, location in city.locations %}
+                                                                               <li><a href="{{ location.link }}">{% if city.multimap is defined and city.multimap %}{{ id }} {% endif %}{{ location.title }}</a></li>
+                                                                       {% endfor %}
+                                                               </ul>
                                                        </div>
                                                </article>
                                        {% endfor %}
                                                        </div>
                                                </article>
                                        {% endfor %}