+ <article class="session{% if session.locked is defined and session.locked %} locked{% elseif session.application.canceled is defined and session.application.canceled %} canceled{% endif %}">
+ {% if session.snippet.rate is defined and session.snippet.rate %}
+ {% if session.snippet.hat is defined and session.snippet.hat %}
+ <dl>
+ <dt>{% trans %}Contribution to costs{% endtrans %}</dt>
+ <dd>{% if session.snippet.rate == 0 %}{% trans %}To the hat, to cover: talc, electricity, bicycle, website, ...{% endtrans %}{% else %}{{ 'To the hat, ideally %rate% €, to cover: talc, electricity, bicycle, website, ...'|trans({'%rate%': session.snippet.rate}) }}{% endif %}</dd>
+ </dl>
+ {% else %}
+ <dl>
+ <dt>{% trans %}Contribution{% endtrans %}</dt>
+ <dd>{% if session.snippet.rate == 0 %}{% trans %}Free{% endtrans %}{% else %}{{ session.snippet.rate }} €{% endif %}</dd>
+ </dl>
+ {% endif %}
+ {% endif %}
+ {% endif %}
{% endif %}
- {% if session.application.user.site is defined and session.application.user.site %}
+ {% if session.locked is defined and session.locked %}
- {% if session.start.format('Y-m-d') != session.stop.format('Y-m-d') %}
- {{ session.stop.format('Y-m-d H:i:s') }}
- {% else %}
- {{ session.stop.format('H:i:s') }}
- {% endif %}
- </dd>
+ <dt>{% trans %}Description{% endtrans %}</dt>
+ <dd>{{ session.location.description }}</dd>
</dl>
<dl>
- <dt>{% trans %}Length{% endtrans %}</dt>
- <dd>{{ session.length.format('H:i:s') }}</dd>
+ <dt>{% trans %}Interiority{% endtrans %}</dt>
+ <dd>{% if session.location.indoor is defined and session.location.indoor%}{% trans %}Indoor{% endtrans %}{% else %}{% trans %}Outdoor{% endtrans %}{% endif %}</dd>