- </dd>
- </dl>
- </section>
- <section class="cell">
- <h3>{% trans %}Schedule{% endtrans %}</h3>
- <dl>
- <dt>{% trans %}Slot{% endtrans %}</dt>
- <dd>{{ session.slot.title }}</dd>
- </dl>
- <dl>
- <dt>{% trans %}Start{% endtrans %}</dt>
- <dd>{{ session.start.format('Y-m-d H:i:s') }}</dd>
- </dl>
- <dl>
- <dt>{% trans %}Stop{% endtrans %}</dt>
- <dd>
- {% 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') }}
+ {% if session.snippet is defined and session.snippet %}
+ {% if session.snippet.description is defined and session.snippet.description %}
+ <dl>
+ <dt>{% trans %}Description{% endtrans %}</dt>
+ <dd>{{ session.snippet.description|striptags|markdown_to_html }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.snippet.class is defined and session.snippet.class %}
+ <dl>
+ <dt>{% trans %}Class{% endtrans %}</dt>
+ <dd>{{ session.snippet.class|striptags|markdown_to_html }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.snippet.contact is defined and session.snippet.contact %}
+ <dl>
+ <dt>{% trans %}Contact{% endtrans %}</dt>
+ <dd><a href="{{ session.application.user.contact }}">{{ 'Send a message to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
+ </dl>
+ {% endif %}
+ {% if session.snippet.donate is defined and session.snippet.donate %}
+ <dl>
+ <dt>{% trans %}Donate{% endtrans %}</dt>
+ <dd><a href="{{ session.snippet.donate }}">{{ 'Donate to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
+ </dl>
+ {% endif %}
+ {% if session.snippet.link is defined and session.snippet.link %}
+ <dl>
+ <dt>{% trans %}Link{% endtrans %}</dt>
+ <dd><a href="{{ session.snippet.link }}">{{ 'Link to %pseudonym%'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
+ </dl>
+ {% endif %}
+ {% if session.snippet.profile is defined and session.snippet.profile %}
+ <dl>
+ <dt>{% trans %}Social network{% endtrans %}</dt>
+ <dd><a href="{{ session.snippet.profile }}">{{ 'Consult %pseudonym% profile'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
+ </dl>
+ {% 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 %}