Commit 8c80da9c authored by Simon Daron's avatar Simon Daron
Browse files

Use panik tag for sounds in episodes

parent 598b65fa
......@@ -10,7 +10,7 @@ register = template.Library()
def zip_lists(a, b):
return zip(a, b)
@register.inclusion_tag('includes/audio.html', takes_context=True)
@register.inclusion_tag('includes/audio.html')
def audio(sound=None):
return {
'sound': sound
......
{% load thumbnails %}
{% load paniktags %}
<div class="episode episode-inline inline cf">
<div class="date dateBloc left small">
<span class="day">
......@@ -43,7 +44,7 @@
{% endif %}
{% if episode.main_sound %}
<div class="sound">
{% include "includes/audio.html" with sound=episode.main_sound %}
{% audio sound=episode.main_sound %}
</div>
{% endif %}
</div>
......
{% load soundfiles %}
{% load paniktags %}
<div class="episode resume episode-resume cf">
<div class="date dateBloc">
<span class="day">
......@@ -56,7 +57,7 @@
</div>
{% if episode.main_sound %}
<div class="sound">
{% include "includes/audio.html" with sound=episode.main_sound %}
{% audio sound=episode.main_sound %}
</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