-<section id="dashboard">
- <h2>
- <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
- </h2>
- <div class="panel calendar">
- <div class="grid">
- <section class="cell fourth">
- <h3>{% trans %}Location{% endtrans %}</h3>
- <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.title }}</a>
- </section>
- <section class="cell fourth">
- <h3>{% trans %}Slot{% endtrans %}</h3>
- {{ session.slot.title }}
- </section>
- <section class="cell fourth">
- <h3>{% trans %}Created{% endtrans %}</h3>
- {{ session.created.format('Y-m-d H:i:s') }}
- </section>
- <section class="cell fourth">
- <h3>{% trans %}Updated{% endtrans %}</h3>
- {{ session.updated.format('Y-m-d H:i:s') }}
- </section>
- <section class="cell third">
- <h3>{% trans %}Attributed to{% endtrans %}</h3>
- {% 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 %}
- </section>
- <section class="cell third">
- <h3>{% trans %}Begin{% endtrans %}</h3>
- {% if session.begin is null %}
- {% trans %}None{% endtrans %}
- {% else %}
- {{ session.begin.format('Y-m-d H:i:s') }}
- {% endif %}
- </section>
- <section class="cell third">
- <h3>{% trans %}End{% endtrans %}</h3>
- {% if session.end is null %}
- {% trans %}None{% endtrans %}
- {% else %}
- {{ session.end.format('Y-m-d H:i:s') }}
- {% endif %}
- </section>
- </div>
- {{ include('@RapsysAir/form/_toolbox.html.twig') }}
- </div>
- <div class="panel candidate">
- <div class="grid">
- <section class="cell">
- <h3>{% trans %}Candidates{% endtrans %}</h3>
- <div class="subgrid">
- {% if session.applications is null %}
- {% trans %}None{% endtrans %}
- {% else %}
- {% for application in session.applications %}
- <section class="cell">
- <h4><a href="{{ path('rapsys_air_user_view', {'id': application.user.id} ) }}">{{ application.user.title }}</a></h4>
- <dl>
- <dt>{% trans %}Created{% endtrans %}</dt>
- <dd>{{ application.created.format('Y-m-d H:i:s') }}</dd>
- </dl>
- <dl>
- <dt>{% trans %}Updated{% endtrans %}</dt>
- <dd>{{ application.updated.format('Y-m-d H:i:s') }}</dd>
- </dl>
- </section>
- {% endfor %}
+ <section id="dashboard">
+ <h2>
+ <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
+ <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
+ </h2>
+ <div class="panel">
+ <div class="grid">
+ <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_organizer_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.application.user.donation is defined and session.application.user.donation %}
+ <dl>
+ <dt>{% trans %}Donation{% endtrans %}</dt>
+ <dd><a href="{{ session.application.user.donation }}" title="{{ 'Make a donation to %title%'|trans({'%title%': session.application.user.title}) }}">{{ 'Contribute to %title%'|trans({'%title%': session.application.user.title}) }}</a></dd>
+ </dl>
+ {% endif %}
+ {% if session.application.user.site is defined and session.application.user.site %}
+ <dl>
+ <dt>{% trans %}Website{% endtrans %}</dt>
+ <dd><a href="{{ session.application.user.site }}" title="{{ 'Consult %title% website'|trans({'%title%': session.application.user.title}) }}">{{ 'Website of %title%'|trans({'%title%': session.application.user.title}) }}</a></dd>
+ </dl>
+ {% endif %}
+ </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') }}
+ {% endif %}
+ </dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Length{% endtrans %}</dt>
+ <dd>{{ session.length.format('H:i:s') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Locked{% endtrans %}</dt>
+ <dd>
+ {% if session.locked is null %}
+ {% trans %}None{% endtrans %}
+ {% else %}
+ {{ session.locked.format('Y-m-d H:i:s') }}
+ {% endif %}
+ </dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Created{% endtrans %}</dt>
+ <dd>{{ session.created.format('Y-m-d H:i:s') }}</dd>
+ </dl>
+ <dl>
+ <dt>{% trans %}Updated{% endtrans %}</dt>
+ <dd>{{ session.updated.format('Y-m-d H:i:s') }}</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>