{% extends "emissions.html" %} {% load paniktags %} {% block bodyID %}Grid{% endblock %} {% block title %}La grille{% endblock %} {% block nav %} {% emission_nav with klass="grid" %} {% endblock %} {% block main %}
{% for weekday in weekdays %} {% endfor %} {% for time_header, time_cells in times|zip:grid %} {% for cell in time_cells %} {% endfor %} {% endfor %}

{{ weekday }}
{{ time_header }} 1 %}colspan="{{cell.w}}"{% endif %} {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}> {% if cell.time_label %}
{{ cell.time_label }}
{% endif %} {% if cell.schedules %} {% for schedule in cell.schedules %} {% if forloop.first == False and cell.schedules|length > 1 %}
{% endif %}
{{ schedule.emission.title }}
{% if schedule.weeks_string or schedule.time_label %} {% spaceless %} ( {% if schedule.time_label %} {{ schedule.time_label }} {% if schedule.weeks_string %}, {% endif %} {% endif %} {% if schedule.weeks_string %} {{ schedule.weeks_string }} {% endif %} ) {% endspaceless %} {% endif %}
{% endfor %} {% else %}
{{ cell }}
{% if cell.w > 1 and cell.h > 1%}

la musique en continu

{% endif %} {% endif %}
{{ time_header }}
{% endblock %} {% block news %} {% endblock %}