Commit 2adb1aab authored by fred's avatar fred
Browse files

use get_public_label when creating grid time cells

parent a6d05f0d
......@@ -61,7 +61,7 @@
{% endfor %}
{% else %}
<div class="continu"><strong><a
href="{% if cell.redirect_path %}{{ cell.redirect_path }}{% else %}{% url 'emission-view' slug=cell.nonstop_slug %}{% endif %}">{{ cell.get_public_label }}</a></strong></div>
href="{% if cell.redirect_path %}{{ cell.redirect_path }}{% else %}{% url 'emission-view' slug=cell.nonstop_slug %}{% endif %}">{{ cell }}</a></strong></div>
{% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
{% endif %}
</td>
......
......@@ -303,15 +303,15 @@ class Grid(TemplateView):
if nonstop.start < nonstop.end:
nonstops.append([nonstop.start.hour + nonstop.start.minute/60.,
nonstop.end.hour + nonstop.end.minute/60.,
nonstop.title, nonstop.slug, nonstop])
nonstop.get_public_label(), nonstop.slug, nonstop])
else:
# crossing midnight
nonstops.append([nonstop.start.hour + nonstop.start.minute/60.,
24,
nonstop.title, nonstop.slug, nonstop])
nonstop.get_public_label(), nonstop.slug, nonstop])
nonstops.append([0,
nonstop.end.hour + nonstop.end.minute/60.,
nonstop.title, nonstop.slug, nonstop])
nonstop.get_public_label(), nonstop.slug, nonstop])
nonstops.sort()
for i in range(nb_lines):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment