{% load url from future %} {% load i18n pybb_tags humanize %}
{% trans "Forum" %} | {% trans "Last post" %} |
---|---|
{{ forum.name }} {% if forum.hidden %}[{% trans "Hidden" %}]{% endif %}
{{ forum.description|safe }}
{% blocktrans count forum.topic_count as counter %}{{ counter }} topic{% plural %}{{ counter }} topics{% endblocktrans %} {% blocktrans count forum.post_count as counter %}{{ counter }} post{% plural %}{{ counter }} posts{% endblocktrans %} |
{% if forum.last_post %}
{% with last_post=forum.last_post %}
{{ last_post.topic.name }}
{% blocktrans with username=last_post.user %}by {{ username }}{% endblocktrans %}
{{ last_post.created|naturaltime }}
{% endwith %}
{% endif %}
|
{% trans "Topic" %} | {% trans "Posts" %} | {% trans "Views" %} | {% trans "Last post" %} |
---|---|---|---|
{{ topic.name|truncatewords:10 }} {% if topic.sticky %} [{% trans "Sticky" %}] {% endif %} {% if topic.closed %} [{% trans "Closed" %}] {% endif %} {% if topic.deleted %} [{% trans "Deleted" %}] {% endif %} {% with topic|pybb_topic_inline_pagination as pages %} {% if pages|length > 1 %} {% trans "pages" %}: {% for page in pages %} {% if page == "..." %} ... {% else %} {{ page }} {% endif %} {% endfor %} {% endif %} {% endwith %} | {{ topic.post_count }} | {{ topic.views }} |
{% if topic.updated %}
{{ topic.updated|naturaltime }}
{% endif %}
{% with last_post=topic.last_post %}
{% if last_post %}
{% blocktrans with username=last_post.user %}by {{ username }}{% endblocktrans %}
→
{% endif %}
{% endwith %}
|