{% extends "base.html" %} {% block content %} {% if topic_list | length == 0 %}

There are no topics.

{% else %} {% for topic in topic_list %}
{{ topic['name'] }} {{ topic['description'] }} {% if topic['latest_thread_username'] %} Latest thread: {{topic['latest_thread_title']}} by {{topic['latest_thread_username']}} on ... {% if topic['id'] in active_threads %} {% with thread=active_threads[topic['id']] %} Latest post in: {{ thread['thread_title'] }} by {{ thread['username'] }} on ... {% endwith %} {% endif %} {% else %} No threads yet. {% endif %}
{% if topic['is_locked'] %} Locked {% endif %}
{% endfor %} {% endif %} {% endblock %}