display topics as badges

This commit is contained in:
Élie Bouttier 2016-09-28 21:35:53 +02:00
parent e32b79ea32
commit 9ee7862ee7
1 changed files with 1 additions and 3 deletions

View File

@ -60,9 +60,7 @@
</td>
<td>
{% for topic in talk.topics.all %}
{{ topic }}
{% if forloop.revcounter == 2 %} {% trans "and" %} {% elif not forloop.last %}, {% endif %}
{% empty %}
<span class="badge">{{ topic }}</span>
{% endfor %}
</td>
<td>{{ talk.track|default:"" }}</td>