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

Fix sort Listen

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