- {#{% for date, day in organizers %}
- <section class="{{ ['cell', 'seventh']|merge(day.class)|join(' ') }}">
- <h3>{{ day.title }}</h3>
- {% if day.sessions is not empty %}
- <ul>
- {% for session in day.sessions %}
- <li class="{{ ['session']|merge(session.class)|join(' ') }}">
- <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}" title="{{ session.applications|join('\n') }}">{{ session.title }}</a>
- <span>
- {% if session.weather is defined and session.weather %}<span title="{{ session.weathertitle }}">{{ session.weather }}</span>{% endif %}
- <span title="{{ session.slottitle }}">{{ session.slot }}</span>
- </span>
- </li>
+ </div>
+ {% elseif users is defined and users %}
+ <div class="grid{% if users|length > 3 %} four{% elseif users|length > 2 %} three{% elseif users|length > 1 %} two{% endif %}">
+ {% for id, user in users %}
+ <article class="cell">
+ <header>
+ <h3><a href="{{ user.link }}" title="{{ '%pseudonym% calendar'|trans({'%pseudonym%': user.pseudonym}) }}">{{ user.pseudonym }}</a></h3>
+ </header>
+ {% for dname, dinfos in user.dances %}
+ <dl>
+ <dt><a href="{{ dinfos.link }}">{{ dname }}</a></dt>
+ {% for dtype, dlink in dinfos.types %}
+ <dd><a href="{{ dlink }}">{{ dtype }}</a><dd>