Commit 9ad53cbb authored by Simon Daron's avatar Simon Daron
Browse files

Fix sort Listen

parent ac3ce90c
......@@ -438,10 +438,10 @@ class Listen(TemplateView):
FROM emissions_diffusion
WHERE episode_id = emissions_episode.id)'''],
tables=['emissions_diffusion'],
).order_by('-first_diffusion').reverse():
if x >= 24:
).order_by('-first_diffusion'):
if x >= 60:
break
elif episode.has_sound is None:
elif episode.main_sound is None:
continue
else:
x+=1
......
......@@ -33,10 +33,10 @@
<div id="All">
{% block meta %}<div id="metaNav">{% metanav %}</div>{% endblock %}
<div id="Commons">
<div id="mainHeader" class="center">
<a href="{% url 'home' %}"><h1><span id="radioPanik" class="inBlock">Radio Panik</span> <span id="frequence" class="inBlock">105.4 FM</span></h1></a>
<a href="{% url 'home' %}" id="mainHeader" class="block center">
<h1><span id="radioPanik" class="inBlock">Radio Panik</span> <span id="frequence" class="inBlock">105.4 FM</span></h1>
<!--{% block logo %}<img class="logo" src="{{ STATIC_URL }}/img/LogoPanik.jpg"/>{% endblock %}-->
</div>
</a>
<div id="Listen" class="{% block player-class %}{% endblock %}">
{% block listen %}{% player %}{% endblock %}
</div>
......
......@@ -38,7 +38,7 @@
<a href="{% url 'emission-view' slug=episode.emission.slug %}">{{ episode.emission.title }}</a>
</h5>
{% endif %}
<h5 class="title">
<h5 class="title {% if model = "inline" %}ellipsis{% endif %}">
<a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a>
</h5>
{% if model = "inline" %}
......
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