Commit 7f9ed36b authored by fred's avatar fred

add custom template for alimentation topik

parent 1e4d00f1
{% load paniktags thumbnail staticfiles %}
{% if title and episodes %}<h3>{{title}}</h3>{% endif %}
{% for episode in episodes %}
<div class="episode inline episode-inline">
<div class="logo">
{% if episode.image %}
{% thumbnail episode.image "60x60" crop="50% 25%" as im %}
<img src="{{im.url}}"/>
{% endthumbnail %}
{% elif episode.emission.image %}
{% thumbnail episode.emission.image "60x60" crop="50% 25%" as im %}
<img src="{{im.url}}"/>
{% endthumbnail %}
{% else %}
<img class="smooth" style="width:60px;" src="{% static "img/emission.png" %}"/>
{% endif %}
</div>
<div class="content">
{% if episode.main_sound %}
<div class="sound right">{% audio sound=episode.main_sound %}</div>
{% endif %}
<div class="title">
<h5 class="title">
<a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a>
</h5>
</div>
{% if episode.text %}
<div class="description">
{{ episode.text|safe|striptags|truncatewords:35 }}
</div>
{% endif %}
</div>
</div>
{% endfor %}
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