{% extends 'pybb/base.html' %} {% block title %} Latest posts - {{ block.super }} {% endblock title %} {% block content_header %}

Latest Posts

{% endblock %} {% block content_main %}
{% csrf_token %} {{ form.days.errors }} {{ form.sort_by.errors }} {{ form.sort_by.label_tag }} {{ form.sort_by }} {% if form.errors %}

An error occured, some default values are used. Please correct the errors above to get valuable results.

{% else %}

Found {{ posts_count }} posts. The list is always sorted by the most recent post first.

{% endif %}

{% if sort_by == 'topic' %} {% for topic, posts in object_list.items %}

Topic: {{ topic }}

At Forum: {{ topic.forum }}

{% include 'pybb/inlines/latest_posts_table.html'%} {% endfor %} {% else %} {# sort by forum #} {% for forum, topics in object_list.items %}

Forum: {{ forum }}

{% for topic, posts in topics.items %} {% endfor %}
Topic{{ topic_list|length|pluralize }} Post{{ posts|length|pluralize }}
{{ topic }} {% include 'pybb/inlines/latest_posts_table.html'%}
{% empty %}

Sorry, no posts found...

{% endfor %} {% endif %}
{% endblock %}