From: Raphaƫl Gertz <git@rapsys.eu>
Date: Tue, 8 Dec 2020 00:42:53 +0000 (+0100)
Subject: Add weather and slot glyphs
X-Git-Tag: 0.1.5~2
X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/ab256e72e6a8095629a62dfc6af70c3793b1d41c

Add weather and slot glyphs
Improve locations section
---

diff --git a/Resources/views/location/view.html.twig b/Resources/views/location/view.html.twig
index 6920fee..dcff401 100644
--- a/Resources/views/location/view.html.twig
+++ b/Resources/views/location/view.html.twig
@@ -13,6 +13,10 @@
 								{% for session in day.sessions %}
 									<li class="{{ ['session']|merge(session.class)|join(' ') }}">
 										<a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
+										<span>
+											{% if session.weather is defined and session.weather %}<span title="{{ session.weathertitle }}">{{ session.weather }}</span>{% endif %}
+											<span title="{{ session.slottitle }}">{{ session.slot }}</span>
+										</span>
 									</li>
 								{% endfor %}
 							</ul>
@@ -27,13 +31,16 @@
 	</div>
 	{% if locations is defined and locations %}
 		<div class="panel location">
-			<div class="grid">
-				{% for id, title in locations %}
-					<section class="cell">
-						<h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
-					</section>
-				{% endfor %}
-			</div>
+			<section>
+				<h3>{% trans %}Locations{% endtrans %}</h3>
+				<div class="grid">
+					{% for id, title in locations %}
+						<section class="cell">
+							<h4><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h4>
+						</section>
+					{% endfor %}
+				</div>
+			</section>
 		</div>
 	{% endif %}
 </section>
diff --git a/Resources/views/session/index.html.twig b/Resources/views/session/index.html.twig
index 716eb99..291e52a 100644
--- a/Resources/views/session/index.html.twig
+++ b/Resources/views/session/index.html.twig
@@ -13,6 +13,10 @@
 								{% for session in day.sessions %}
 									<li class="{{ ['session']|merge(session.class)|join(' ') }}">
 										<a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
+										<span>
+											{% if session.weather is defined and session.weather %}<span title="{{ session.weathertitle }}">{{ session.weather }}</span>{% endif %}
+											<span title="{{ session.slottitle }}">{{ session.slot }}</span>
+										</span>
 									</li>
 								{% endfor %}
 							</ul>
@@ -27,13 +31,16 @@
 	</div>
 	{% if locations is defined and locations %}
 		<div class="panel location">
-			<div class="grid">
-				{% for id, title in locations %}
-					<section class="cell">
-						<h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
-					</section>
-				{% endfor %}
-			</div>
+			<section>
+				<h3>{% trans %}Locations{% endtrans %}</h3>
+				<div class="grid">
+					{% for id, title in locations %}
+						<section class="cell">
+							<h4><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h4>
+						</section>
+					{% endfor %}
+				</div>
+			</section>
 		</div>
 	{% endif %}
 </section>
diff --git a/Resources/views/user/view.html.twig b/Resources/views/user/view.html.twig
index 2110208..162c383 100644
--- a/Resources/views/user/view.html.twig
+++ b/Resources/views/user/view.html.twig
@@ -13,6 +13,10 @@
 								{% for session in day.sessions %}
 									<li class="{{ ['session']|merge(session.class)|join(' ') }}">
 										<a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
+										<span>
+											{% if session.weather is defined and session.weather %}<span title="{{ session.weathertitle }}">{{ session.weather }}</span>{% endif %}
+											<span title="{{ session.slottitle }}">{{ session.slot }}</span>
+										</span>
 									</li>
 								{% endfor %}
 							</ul>
@@ -27,13 +31,16 @@
 	</div>
 	{% if locations is defined and locations %}
 		<div class="panel location">
-			<div class="grid">
-				{% for id, title in locations %}
-					<section class="cell">
-						<h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
-					</section>
-				{% endfor %}
-			</div>
+			<section>
+				<h3>{% trans %}Locations{% endtrans %}</h3>
+				<div class="grid">
+					{% for id, title in locations %}
+						<section class="cell">
+							<h4><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h4>
+						</section>
+					{% endfor %}
+				</div>
+			</section>
 		</div>
 	{% endif %}
 </section>