Commit d0fc8aa2 authored by Simon Daron's avatar Simon Daron

Display categories on emission list

parent b65094b3
......@@ -9,6 +9,13 @@
<img src="http://placehold.it/50x50">
{% endif %}
</div>
{% if emission.categories %}
<div class="categories smooth ellipsis">
{% for category in emission.categories.all %}
{% if forloop.counter > 1 %} - {% endif %}<em>{{category}}</em>
{% endfor%}
</div>
{% endif %}
<h5 class="title ellipsis">{{ emission.title }}</h5>
{% if emission.description %}
<div class="description ellipsis">
......@@ -19,6 +26,7 @@
{{ emission.text|safe|striptags|truncatewords:20}}
</div>
{% endif %}
</a>
</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