PonyConf/proposals/templates/proposals/_talk_list.html
2016-09-03 23:59:10 +02:00

25 lines
854 B
HTML

{% load i18n %}
{% regroup talk_list by event as event_list %}
{% for event in event_list %}
<h3>{{ event.list.0.event }}</h3>
<ul>{% for talk in event.list %}
<li>
{{ talk.get_link }}
<i>by</i>
{% for speaker in talk.speakers.all %}
<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>
{% empty %}{% trans "No talks" %}
{% endfor %}