]> Raphaël G. Git Repositories - airbundle/commitdiff
Add stop and hat infos
authorRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 08:24:05 +0000 (10:24 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 08:24:36 +0000 (10:24 +0200)
Expand pseudonym without hat infos

Resources/views/session/index.html.twig

index 0ac7d6a3dc396242f46b48afc06e2abf8a831a4f..9d6e2a6a33f73949e75714385e3ea65d3c2eb27a 100644 (file)
                                                                                                        {% 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 %}