-<section id="session">
- <h2>
- <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
- </h2>
- <section class="panel">
- <section class="grid">
- <div class="row">
- <dl class="cell">
- <dt><h3>{% trans %}Location{% endtrans %}</h3></dt>
- <dd><a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a></dd>
- </dl>
- <dl class="cell">
- <dt><h3>{% trans %}Slot{% endtrans %}</h3></dt>
- <dd>{{ session.slot.title }}</dd>
- </dl>
- <dl class="cell">
- <dt><h3>{% trans %}Created{% endtrans %}</h3></dt>
- <dd>{{ session.created.format('Y-m-d H:i:s') }}</dd>
- </dl>
- <dl class="cell">
- <dt><h3>{% trans %}Updated{% endtrans %}</h3></dt>
- <dd>{{ session.updated.format('Y-m-d H:i:s') }}</dd>
- </dl>
- </div>
- <div class="row">
- <dl class="cell">
- <dt><h3>{% trans %}Attributed to{% endtrans %}</h3></dt>
- {% if session.application is null %}
- <dd>{% trans %}None{% endtrans %}</dd>
- {% else %}
- <dd><a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a></dd>
+ <article id="dashboard"{% if session.application.canceled is defined and session.application.canceled %} class="canceled"{% endif %}>
+ <header>
+ <h2>
+ <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
+ {% if session.application.id is defined and session.application.id %}
+ <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.by }}</a>
+ {% endif %}
+ <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
+ </h2>
+ <p>{{ description }}</p>
+ </header>
+ <div class="panel">
+ <div class="grid four">
+ <section class="cell">
+ <h3>{% trans %}Organizer{% endtrans %}</h3>
+ <dl>
+ <dt>{% trans %}Attributed to{% endtrans %}</dt>
+ <dd>
+ {% if session.application is null %}
+ {% trans %}None{% endtrans %}
+ {% else %}
+ <a href="{{ path('rapsys_air_user_view', {'id': session.application.user.id}) }}">{{ session.application.user.title }}</a>
+ {% endif %}
+ </dd>
+ </dl>
+ {% 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.snippet.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 %}
+ </section>
+ <section class="cell">
+ <h3>{% trans %}Schedule{% endtrans %}</h3>
+ <dl>
+ <dt>{% trans %}Date{% endtrans %}</dt>
+ <dd>{{ session.start|localizeddate('long', 'none') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Start{% endtrans %}</dt>
+ <dd>{{ session.start|localizeddate('none', 'medium') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Stop{% endtrans %}</dt>
+ <dd>{{ session.stop|localizeddate('none', 'medium') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Length{% endtrans %}</dt>
+ <dd>{{ session.length|localizeddate('none', 'short', null, null, 'HH:mm') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Slot{% endtrans %}</dt>
+ <dd>{{ session.slot.title }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Locked{% endtrans %}</dt>
+ <dd>
+ {% if session.locked is null %}
+ {% trans %}None{% endtrans %}
+ {% else %}
+ {{ session.locked|localizeddate('long', 'medium') }}
+ {% endif %}
+ </dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Created{% endtrans %}</dt>
+ <dd>{{ session.created|localizeddate('long', 'medium') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Updated{% endtrans %}</dt>
+ <dd>{{ session.updated|localizeddate('long', 'medium') }}</dd>
+ </dl>
+ </section>
+ <section class="cell">
+ <h3>{% trans %}Weather{% endtrans %}</h3>
+ {% if session.rainrisk is not null %}
+ <dl>
+ <dt>{% trans %}Rainrisk{% endtrans %}</dt>
+ <dd>{{ session.rainrisk }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.rainfall is not null %}
+ <dl>
+ <dt>{% trans %}Rainfall{% endtrans %}</dt>
+ <dd>{{ session.rainfall }}</dd>
+ </dl>
+ {% endif %}
+ {% if session.realfeel is not null %}
+ <dl>
+ <dt>{% trans %}Realfeel{% endtrans %}</dt>
+ <dd>{{ session.realfeel }}</dd>
+ </dl>