- <article id="dashboard"{% if session.application.canceled is defined and session.application.canceled %} class="canceled"{% endif %}>
+ <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 %}
+ {% if session.application is defined and session.application %}
+ {% if session.application.dance is defined and session.application.dance %}
<dl>
- <dt>{% trans %}Contribution{% endtrans %}</dt>
- <dd>{% if session.snippet.rate == 0 %}{% trans %}To the hat, to cover the costs: talc, electricity, bicycle, server{% endtrans %}{% else %}{{ 'To the hat, ideally %rate% €, to cover the costs: talc, electricity, bicycle, server'|trans({'%rate%': session.snippet.rate}) }}{% endif %}</dd>
+ {% 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.locked is defined and session.locked %}
+ <dd>{% if session.location.indoor is defined and session.location.indoor%}{% trans %}Indoor{% endtrans %}{% else %}{% trans %}Outdoor{% endtrans %}{% endif %}</dd>