display topics as badges

This commit is contained in:
Élie Bouttier 2016-09-28 21:35:53 +02:00
parent e32b79ea32
commit 9ee7862ee7

View File

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