PonyConf/proposals/templates/proposals/talk_list.html

25 lines
616 B
HTML

{% extends 'base.html' %}
{% block talktab %} class="active"{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<ul>
{% for talk in talks %}
<li>
<a href="{% url 'show-talk' talk.slug %}">{{ talk }}</a>
<i>by</i>
{% for speach in talk.speach_set.all %}
<a href="{% url 'show-user' speach.user.username %}">{% firstof speach.user.get_full_name speach.user.username %}</a>
{% if forloop.revcounter == 2 %} and {% elif not forloop.last %}, {% endif %}
{% endfor %}
</li>
{% empty %}
<li><i>No talk.</i></li>
{% endfor %}
</ul>
{% endblock %}