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