PonyConf/proposals/templates/proposals/topic_list.html
2016-07-07 16:46:55 +02:00

34 lines
907 B
HTML

{% extends 'base.html' %}
{% load accounts_tags %}
{% block topictab %} class="active"{% endblock %}
{% block content %}
<h1>Topics:</h1>
<ul>
{% for topic in topic_list %}
<li>
{% if request|staff %}
{{ topic }}:
<a href="{{ topic.get_absolute_url }}">{{ topic.reviewers.count }} reviewer{{ topic.reviewers.count|pluralize }}</a>
and
<a href="{% url 'list-talks-by-topic' topic.slug %}">{{ topic.talks.count }} talk{{ topic.talks.count|pluralize }}</a>
{% else %}
<a href="{% url 'list-talks-by-topic' topic.slug %}">{{ topic }}</a>
{% endif %}
{% if request.user.is_superuser %} - <a href="{% url 'edit-topic' topic.slug %}">edit</a>{% endif %}
</li>
{% empty %}
<li><i>No topics.</i></li>
{% endfor %}
</ul>
{% if request|orga %}
<a href="{% url 'add-topic' %}" class="btn btn-success">Add a topic</a>
{% endif %}
{% endblock %}