fix displaying of talks without any topics

This commit is contained in:
Élie Bouttier 2016-07-10 00:30:28 +02:00
parent 5bd9db6f94
commit ed20943788
1 changed files with 2 additions and 0 deletions

View File

@ -10,11 +10,13 @@
<a href="{% url 'show-speaker' speaker.username %}">{{ speaker }}</a>
{% if forloop.revcounter == 2 %} and {% elif not forloop.last %}, {% endif %}
{% endfor %}
{% if talk.topics.exists %}
<i>in</i>
{% for topic in talk.topics.all %}
<a href="{% url 'list-talks-by-topic' topic.slug %}">{{ topic }}</a>
{% if forloop.revcounter == 2 %} and {% elif not forloop.last %}, {% endif %}
{% endfor %}
{% endif %}
</li>
{% endfor %}
</ul>