Commit a6d05f0d authored by fred's avatar fred
Browse files

use new get_public_label accessor for nonstop zones

parent a9a79eee
......@@ -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 }}</a></strong></div>
href="{% if cell.redirect_path %}{{ cell.redirect_path }}{% else %}{% url 'emission-view' slug=cell.nonstop_slug %}{% endif %}">{{ cell.get_public_label }}</a></strong></div>
{% if cell.w > 1 and cell.h > 1%}<p>la musique en continu</p>{% endif %}
{% endif %}
</td>
......
......@@ -670,7 +670,7 @@ def onair(request):
if d.get('nonstop'):
redirect_path = d['nonstop'].redirect_path
d['nonstop'] = {
'title': d['nonstop'].title,
'title': d['nonstop'].get_public_label(),
}
if redirect_path:
d['nonstop']['url'] = redirect_path
......
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