1 {% extends "base.html" %}
4 {% block bodyID %}Grid{% endblock %}
5 {% block listen %}{% endblock %}
6 {% block title %}La grille{% endblock %}
8 <nav id="gridNav" class="">
9 <ul class="distributed by{{ categories.count }}">
11 $('#grid *').removeClass('highlighted');
12 $('#grid .nonstop').addClass('highlighted');
13 ">Non-stop</button></li>
14 {% for category in categories %}
16 $('#grid *').removeClass('highlighted');
17 $('#grid .{{ category|slugify }}').addClass('highlighted');
18 ">{{ category }}</button></li>
24 <div id="grid" class="">
28 <td style=""><br/></td>
29 {% for weekday in weekdays %}
30 <th class="day" width="13%">{{ weekday }}</th>
32 <td style=""><br/></td>
34 {% for time_header, time_cells in times|zip:grid %}
36 <th class="heure">{{ time_header }}</th>
37 {% for cell in time_cells %}
38 <td class="small cell {% if cell.schedules|length > 1 %}many {% endif %}{% if cell.schedules %}scheduled{% else %}nonstop{% endif %}" {% if cell.w > 1 %}colspan="{{cell.w}}"{% endif %}
39 {% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
40 {% if cell.time_label %}
41 <div class="cell-time-label">{{ cell.time_label }}</div>
43 {% if cell.schedules %}
44 {% for schedule in cell.schedules %}
45 {% if forloop.first == False and cell.schedules|length > 1 %}<hr />{% endif %}
46 <div class="item {% for category in schedule.emission.categories.all %}{{ category|slugify }}{% endfor %}">
49 <a href="{% url 'emission-view' slug=schedule.emission.slug %}">{{ schedule.emission.title }}</a>
51 <br />{% if schedule.weeks_string %}
52 ({{ schedule.weeks_string }})
57 <div class="continu"><strong>{{ cell }}</strong></div>
58 {% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
62 <th class="heure">{{ time_header }}</th>