1 {% extends "emissions.html" %}
2 {% load paniktags i18n %}
3 {% block bodyID %}Grid{% endblock %}
4 {% block title %}{% trans 'Grid' %}{% endblock %}
6 <h1 class="top"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
9 {% emission_nav with klass="grid" %}
13 <div id="grid" class="wrapper">
17 <td style=""><br/></td>
18 {% for weekday in weekdays %}
19 <th class="day" width="13%">{{ weekday }}</th>
21 <td style=""><br/></td>
23 {% for time_header, time_cells in times|zip:grid %}
25 <th class="heure">{{ time_header }}</th>
26 {% for cell in time_cells %}
27 <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 %}
28 {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
29 {% if cell.time_label %}
30 <div class="time-label">{{ cell.time_label }}</div>
32 {% if cell.schedules %}
33 {% for schedule in cell.schedules %}
34 {% if forloop.first == False and cell.schedules|length > 1 %}<hr />{% endif %}
35 <div class="item {% for category in schedule.emission.categories.all %} {{ category|slugify }}{% endfor %}">
38 <a href="{% url 'emission-view' slug=schedule.emission.slug %}">
39 <span>{{ schedule.emission.title }}</span>
43 {% if schedule.weeks_string or schedule.time_label %}
46 {% if schedule.time_label %}
47 <span>{{ schedule.time_label }}</span>
48 {% if schedule.weeks_string %}<span>, </span>{% endif %}
50 {% if schedule.weeks_string %}
51 <span>{{ schedule.weeks_string }}</span>
53 {% if schedule.time_label_extra %}
54 <span>{{ schedule.time_label_extra }}</span>
63 <div class="continu"><strong><a href="{% url 'emission-view' slug=cell.nonstop_slug %}">{{ cell }}</a></strong></div>
64 {% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
68 <th class="heure">{{ time_header }}</th>