Commit 9521eeb4 authored by fred's avatar fred

display object types in focus list

parent ad35cfbd
......@@ -90,13 +90,13 @@ Aucune actu.
{% for focus in focused_items %}
<li>
{% if focus.emission %}
<a href="{% url 'emission-view' slug=focus.emission.slug %}">{{ focus.emission.title }}</a>
<a href="{% url 'emission-view' slug=focus.emission.slug %}">[ÉMISSON] {{ focus.emission.title }}</a>
{% elif focus.episode %}
<a href="{% url 'episode-view' slug=focus.episode.slug emission_slug=focus.episode.emission.slug %}">{{ focus.episode.title }}</a>
<a href="{% url 'episode-view' slug=focus.episode.slug emission_slug=focus.episode.emission.slug %}">[ÉPISODE] {{ focus.episode.title }}</a>
{% elif focus.newsitem %}
<a href="{% url 'newsitem-view' slug=focus.newsitem.slug %}">{{ focus.newsitem.title }}</a>
<a href="{% url 'newsitem-view' slug=focus.newsitem.slug %}">[ACTU] {{ focus.newsitem.title }}</a>
{% elif focus.soundfile %}
<a href="{% url 'episode-view' slug=focus.soundfile.episode.slug emission_slug=focus.soundfile.episode.emission.slug %}">{{ focus.episode.title }}</a>
<a href="{% url 'episode-view' slug=focus.soundfile.episode.slug emission_slug=focus.soundfile.episode.emission.slug %}">[SON] {{ focus.soundfile.episode.title }}</a>
{% endif %}
</li>
{% 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