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

Resources/views/user/view.html.twig

index 0a183f45d308115a16cb86a8e79088e8296b7da5..5c652e33e4263e359716e0ff5f8edf1d4faeb2a8 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">{% if session.hat is defined and session.hat %}🎩{% else %}{{ session.rate }} €{% endif %}</span>{% endif %}
                                                                                        </a>
                                                                                </li>
                                                                        {% endfor %}