Commit 049c0ba2 authored by Simon Daron's avatar Simon Daron
Browse files

File for inline episode

parent 34ba89d5
......@@ -32,7 +32,7 @@
<h5 class="sectionLabel">Dernières news</h5>
<ul class="custom list">
{% for content in news %}
<li>{% news_inline %}</li>
{% if content != newsitem %}<li>{% news_inline %}</li>{% endif %}
{% endfor %}
</ul>
</div>
......
{% load thumbnails %}
{% load paniktags %}
{% load staticfiles %}
<div class="episode inline episode-inline">
<div class="logo">
{% if episode.image %}
<img src="{{ episode.image|thumbnail:'60x60' }}"/>
{% elif episode.emission.image %}
<img src="{{ episode.emission.image|thumbnail:'60x60' }}"/>
{% else %}
<img class="smooth" style="width:60px;" src="{% static "img/defaultLogo.png" %}"/>
{% endif %}
</div>
<div class="content">
{% if episode.main_sound %}
<div class="sound right">{% audio sound=episode.main_sound %}</div>
{% endif %}
<div class="title ellipsis">
<div class="smooth">{{ episode.first_diffusion|date:"D m M Y"|lower }}</div>
<h5 class=" inBlock title {% if model = "inline" %}ellipsis{% endif %}">
<a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a>
</h5>
</div>
{% if episode.subtitle %}
<div class="description ellipsis">
{{ episode.subtitle|truncatewords:20}}
</div>
{% elif episode.text %}
<div class="description ellipsis">
{{ episode.text|safe|striptags|truncatewords:20}}
</div>
{% endif %}
</div>
</div>
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