Commit 069f7f95 authored by fred's avatar fred
Browse files

add example usage of new soundfile templatetags

parent ac4e1adf
{% load soundfiles %}
<div class="episode resume episode-resume cf">
<div class="date dateBloc">
<span class="day">
......@@ -25,6 +26,15 @@
</div>
<div class="content">
<h5 class="title"><a href="{{ episode.slug }}">{{ episode.title }}</a></h5>
{% if episode.main_sound|is_format_available:'ogg' %}
dispo en ogg, {{ episode.main_sound|format_url:'ogg' }}
{% endif %}
{% if episode.main_sound|is_format_available:'mp3' %}
dispo en mp3, {{ episode.main_sound|format_url:'mp3' }}
{% endif %}
{% if episode.description %}
<article class="text">
{{ episode.description|safe }}
......
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