fix displaying of talks without any topics
This commit is contained in:
parent
5bd9db6f94
commit
ed20943788
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue