1 {% extends "emissions.html" %}
3 {% block bodyID %}Grid{% endblock %}
4 {% block title %}La grille{% endblock %}
6 {% emission_nav with klass="grid" %}
9 <div id="grid" class="">
13 <td style=""><br/></td>
14 {% for weekday in weekdays %}
15 <th class="day" width="13%">{{ weekday }}</th>
17 <td style=""><br/></td>
19 {% for time_header, time_cells in times|zip:grid %}
21 <th class="heure">{{ time_header }}</th>
22 {% for cell in time_cells %}
23 <td class="small cell {% if cell.schedules|length > 1 %}many {% endif %}{% if cell.schedules %}scheduled{% else %}nonstop musique-en-continu{% endif %}" {% if cell.w > 1 %}colspan="{{cell.w}}"{% endif %}
24 {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
25 {% if cell.time_label %}
26 <div class="time-label">{{ cell.time_label }}</div>
28 {% if cell.schedules %}
29 {% for schedule in cell.schedules %}
30 {% if forloop.first == False and cell.schedules|length > 1 %}<hr />{% endif %}
31 <div class="item {% if not schedule.emission.categories %}nocat{% endif %} {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
34 <a href="{% url 'emission-view' slug=schedule.emission.slug %}">
35 <span>{{ schedule.emission.title }}</span>
38 {% if schedule.emission.categories %}<br />{% endif %}
40 {% if schedule.weeks_string or schedule.time_label %}
43 {% if schedule.time_label %}
44 <span>{{ schedule.time_label }}</span>
45 {% if schedule.weeks_string %}<span>, </span>{% endif %}
47 {% if schedule.weeks_string %}
48 <span>{{ schedule.weeks_string }}</span>
50 {% if schedule.time_label_extra %}
51 <span>{{ schedule.time_label_extra }}</span>
60 <div class="continu"><strong><a href="{% url 'emission-view' slug=cell.nonstop_slug %}">{{ cell }}</a></strong></div>
61 {% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
65 <th class="heure">{{ time_header }}</th>