{% extends "wafer/base.html" %} {% load i18n %} {% load debconf %} {% block title %}{% trans "Schedule" %} - {{ WAFER_CONFERENCE_NAME }}{% endblock %} {% block content %}
{% if tracks %}

{% trans "Tracks" %}

{% for track in tracks %} {% if track.name != 'Other' %} {% endif %} {% endfor %}
{{ track.name }}
Meal
{% endif %}

{% trans "Schedule" %}

{% if user.is_authenticated and user.is_staff %}
Edit schedule
{% endif %}
{% if not schedule_days %} {# Schedule is incomplete / invalid, so show nothing #} {% blocktrans %}

The final schedule has not been published yet.

{% endblocktrans %} {% else %} {% if next_day or prev_day %}
{% url 'wafer_full_schedule' as schedule_url %} {% if prev_day %} {% trans "Previous Day" %} {% endif %} {% if next_day %} {% trans "Next Day" %} {% endif %}
{% endif %} {% for schedule_day in schedule_days %} {# We assume that the admin has created a valid timetable #} {% for venue in schedule_day.venues %} {% endfor %} {% for row in schedule_day.rows %} {% for item in row.get_sorted_items %} {% if item.item == "unavailable" %} {# Venue isn't available, so we add an empty table element with the 'unavailable' class #} {% else %} {# Add item details #} {% endif %} {% endfor %} {% endfor %}
{{ schedule_day.day.date|date:"l (d b)" }}
{% trans "Time" %}{{ venue.name }}
{% if row.slot.get_duration.hours or row.slot.get_duration.minutes > 15 %} {{ row.slot.get_start_time|time:"H:i" }} - {{ row.slot.end_time|time:"H:i" }} {% endif %} {% include "wafer.schedule/schedule_item.html" with item=item.item %}
{% endfor %} {% endif %}
{% endblock %} {% block extra_foot %} {% endblock %}