if nonstop.start < nonstop.end:
nonstops.append([nonstop.start.hour + nonstop.start.minute/60.,
nonstop.end.hour + nonstop.end.minute/60.,
- nonstop.title])
+ nonstop.title, nonstop.slug])
else:
# crossing midnight
nonstops.append([nonstop.start.hour + nonstop.start.minute/60.,
24,
- nonstop.title])
+ nonstop.title, nonstop.slug])
nonstops.append([0,
nonstop.end.hour + nonstop.end.minute/60.,
- nonstop.title])
+ nonstop.title, nonstop.slug])
nonstops.sort()
for i in range(nb_lines):
nonstop = [x for x in nonstops if i>=x[0]*2 and i<x[1]*2][0]
for time_cell in grid[-1]:
time_cell.nonstop = nonstop[2]
+ time_cell.nonstop_slug = nonstop[3]
if nonstop[1] == 5:
# the one ending at 5am will be cut down, so we inscribe
# its duration manually
{% if categories %}
<nav id="gridNav" class="checkable">
<ul class="by{{ categories.count }}">
- {% if class = "grid" %}
- <li><button class="check icon-check-empty" data-about="#Main" data-highlight=".nonstop"></li>
- {% elif class = "emissions" %}
+ {% if class = "emissions" %}
<li><button class="check icon-check" data-about="#Main" data-toggle=".nocat">?</button></li>
{% endif %}
{% for category in categories %}
<tr>
<th class="heure">{{ time_header }}</th>
{% for cell in time_cells %}
- <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 %}
+ <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 %}
{% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
{% if cell.time_label %}
<div class="time-label">{{ cell.time_label }}</div>
</div>
{% endfor %}
{% else %}
- <div class="continu"><strong>{{ cell }}</strong></div>
+ <div class="continu"><strong><a href="{% url 'emission-view' slug=cell.nonstop_slug %}">{{ cell }}</a></strong></div>
{% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
{% endif %}
</td>
{% else %}
<em class="block nonstop ellipsis">
<strong class="" style="visibility:hidden;">{{ cell.datetime|date:"H:i" }}</strong>
- <span>{{ cell.label }}</span>
+ <span><a href="{% url 'emission-view' slug=cell.slug %}">{{ cell.label }}</a></span>
</em>
{% endif %}
</li>