From: Raphaël Gertz <git@rapsys.eu>
Date: Sat, 28 Aug 2021 08:24:05 +0000 (+0200)
Subject: Add stop and hat infos
X-Git-Tag: 0.2.0~22
X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/abc67769642a51d11c6855342f9075f89189bc7c

Add stop and hat infos
Expand pseudonym without hat infos
---

diff --git a/Resources/views/session/index.html.twig b/Resources/views/session/index.html.twig
index 0ac7d6a..9d6e2a6 100644
--- a/Resources/views/session/index.html.twig
+++ b/Resources/views/session/index.html.twig
@@ -21,9 +21,11 @@
 													{% endif %}
 													<span title="{{ session.slottitle }}">{{ session.slot }}</span>
 												</span>
+												<span>{{ session.stop|localizeddate('none', 'short') }}</span>
 												{% if session.pseudonym is defined and session.pseudonym %}
-													<span class="reducible pseudonym">{{ session.pseudonym }}</span>
+													<span class="reducible{% if session.rate is not defined and session.hat is not defined %} pseudonym{% endif %}">{{ session.pseudonym }}</span>
 												{% endif %}
+												{% if session.rate is defined %}<span class="info">{{ session.rate }} {% if session.hat is defined and session.hat %}🎩{% else %}€{% endif %}</span>{% endif %}
 											</a>
 										</li>
 									{% endfor %}