Commit beb8f281 authored by fred's avatar fred
Browse files

move playlist lists after episodes

in case of mixed usage this makes more sense to give a chance to future
episodes to appear on top
parent cfb887d9
......@@ -45,31 +45,6 @@
</div>
{% endif %}
{% if nonstop %}
<div class="sub emissions-newsitems">
<h5 class="sectionLabel">{% trans 'Recently' %}</h5>
<ul class="custom list">
{% for date in nonstop_dates %}
<li><div class="content content-inline inline cf">
<a class="block cf" href="{% url 'nonstop-playlist' slug=emission.slug year=date.year month=date.month day=date.day %}">
{% if emission.image %}
{% thumbnail emission.image "60x60" crop="50% 25%" as im %}
<div class="logo">
<img class="left" height="60" width="60" src="{{im.url}}"/>
</div>
{% endthumbnail %}
{% endif %}
<div class="content">
<h5 class="title">{{date|date:'D d M Y'|lower}}</h5>
</div>
<div class="smooth">Playlist</div>
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if episodes.exists or futurEpisodes.exists %}
<h5 class="sectionLabel right"><a class="" href="{% url 'emissionEpisodes' slug=emission.slug %}">Tous ({{ episodes.count }})</a></h5>
<h5 class="sectionLabel">Épisodes</h5>
......@@ -99,6 +74,31 @@
</div>
{% endif %}
{% endif %}
{% if nonstop %}
<div class="sub emissions-newsitems">
<h5 class="sectionLabel">{% trans 'Recently' %}</h5>
<ul class="custom list">
{% for date in nonstop_dates %}
<li><div class="content content-inline inline cf">
<a class="block cf" href="{% url 'nonstop-playlist' slug=emission.slug year=date.year month=date.month day=date.day %}">
{% if emission.image %}
{% thumbnail emission.image "60x60" crop="50% 25%" as im %}
<div class="logo">
<img class="left" height="60" width="60" src="{{im.url}}"/>
</div>
{% endthumbnail %}
{% endif %}
<div class="content">
<h5 class="title">{{date|date:'D d M Y'|lower}}</h5>
</div>
<div class="smooth">Playlist</div>
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
{% endif %}
</div>
......
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