{% comment %} vim:ft=htmldjango: How to display a Forum list {% endcomment %} {% load humanize %} {% load pybb_extras %} {% load wlprofile_extras %} {% load custom_date %} {# List all forums #} {% for forum in category.forums.all %} {% if user.is_superuser %} {# Show all to superuser #} {% if forum.last_post %} {% endif %} {% else %} {# no super_user: Show only nonhidden posts#} {% if forum.last_nonhidden_post %} {% endif %} {% endif %} {% endfor %}
{% if forum|pybb_has_unreads:user %} {% else %} {% endif %} {{ forum.name }}
{{ forum.description }}
Topics: {{ forum.topics.count }}
Posts: {{ forum.posts.count }}
{{ forum.last_post.topic.name }}
by {{ forum.last_post.user|user_link }}
on {{ forum.last_post.created|custom_date:user}}
{{ forum.last_nonhidden_post.topic.name }}
by {{ forum.last_nonhidden_post.user|user_link }}
on {{ forum.last_nonhidden_post.created|custom_date:user}}