Commit 7164ad74 authored by fred's avatar fred
Browse files

add missing slice to soundfiles displayed in main

parent bb624de9
......@@ -28,7 +28,9 @@
<h3 class="sectionLabel">{% firstof title cell.title %}</h3>
<ul class="custom padded main-flex">
{% for soundfile in soundfiles %}
{% with count_s=count|stringformat:"s" %}
{% with slice_count=":"|add:count_s %}
{% for soundfile in soundfiles|slice:slice_count %}
<li class="soundfile frontpage">
<div class="content content-inline cf special">
<a class="block cf" href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">
......@@ -66,6 +68,8 @@
</div>
</li>
{% endfor %}
{% endwith %}
{% endwith %}
</ul>
{% endif %}
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