{% extends "wafer/base.html" %} {% load i18n %} {% load debconf %} {% load static from staticfiles %} {% block title %}{% trans "Schedule" %} - {{ WAFER_CONFERENCE_NAME }}{% endblock %} {% block content %}
{% if user.is_authenticated and user.is_staff %} {% endif %}

{% trans "Schedule" %}

{% if not schedule_pages %} {# Schedule is incomplete / invalid, so show nothing #} {% blocktrans trimmed %}

The final schedule has not been published yet.

{% endblocktrans %} {% else %} {% if next_block or prev_block %}
{% url 'wafer_full_schedule' as schedule_url %} {% if prev_block %} {% trans "Previous" %} — {{ prev_block.start_time|date:"l (d b)" }} {% endif %} {% if next_block %} {% trans "Next" %} — {{ next_block.start_time|date:"l (d b)" }} {% endif %}
{% endif %} {% for page in schedule_pages %} {# We assume that the admin has created a valid timetable #} {% for venue in page.venues %} {% endfor %} {% for row in page.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 %}
{{ page.block.start_time|date:"l (d b)" }}

{% trans "Time" %}
{{ venue.name }}
{{ row.slot.get_start_time|time:"H:i" }} - {{ row.slot.end_time|time:"H:i" }} {% include "wafer.schedule/schedule_item.html" with item=item.item %}
{% endfor %} {% endif %}
{% endblock %} {% block extra_foot %} {% endblock %}