1 {% extends '@RapsysAir/body.html.twig' %}
 
   3         <article id="dashboard">
 
   4                 <h2><a href="{{ path('rapsys_air_session') }}">{{ section }}</a></h2>
 
   6                         {% if calendar is defined and calendar %}
 
   7                                 <div class="grid calendar seven">
 
   8                                         {% for date, day in calendar %}
 
   9                                                 <section class="{{ day.class|join(' ') }}">
 
  10                                                         <h3>{{ day.title }}</h3>
 
  11                                                         {% if day.sessions is not empty %}
 
  13                                                                         {% for session in day.sessions %}
 
  14                                                                                 <li class="{{ session.class|join(' ') }}">
 
  15                                                                                         <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">
 
  16                                                                                                 <span>{{ session.start|localizeddate('none', 'short') }}</span>
 
  17                                                                                                 <span class="reducible">{{ session.location }}</span>
 
  19                                                                                                         {% if session.weather is defined and session.weather %}
 
  20                                                                                                                 <span title="{{ session.weathertitle }}">{{ session.weather }}</span>
 
  22                                                                                                         <span title="{{ session.slottitle }}">{{ session.slot }}</span>
 
  24                                                                                                 <span>{{ session.stop|localizeddate('none', 'short') }}</span>
 
  25                                                                                                 {% if session.pseudonym is defined and session.pseudonym %}
 
  26                                                                                                         <span class="reducible{% if session.rate is not defined and session.hat is not defined %} pseudonym{% endif %}">{{ session.pseudonym }}</span>
 
  28                                                                                                 {% if session.rate is defined %}<span class="info">{{ session.rate }} {% if session.hat is defined and session.hat %}🎩{% else %}€{% endif %}</span>{% endif %}
 
  38                         {{ include('@RapsysAir/form/_toolbox.html.twig') }}
 
  41         {{ include('@RapsysAir/default/_location.html.twig') }}