{% extends "kbforums/base.html" %} {% from "kbforums/includes/macros.html" import kbforums_warning with context %} {# L10n: {d} is the name of the document. #} {% set title = _('{d} Discussion | Knowledge Base')|f(d=document.title) %} {% set crumbs = [(document.get_absolute_url(), document.title), (None, _('Discuss'))] %} {% block content %} {{ kbforums_warning(document, user) }}

{{ _('{d} Discussion')|f(d=document.title) }}

{{ _('Post a new thread') }} {% if user.is_authenticated %}
{% csrf_token %} {% if is_watching_forum %} {% set watch = _('Stop watching this forum') %} {% else %} {% set watch = _('Watch this forum') %} {% endif %}
{% endif %}
{% if threads.object_list %}
{% for thread in threads.object_list %} {% endfor %}
{{ _('Type') }} {{ _('Title') }} {{ _('Author') }} {{ _('Replies') }} {{ _('Last Post') }}
{% if thread.is_locked %} {{ pgettext('thread_type', 'Locked') }} {% endif %} {% if thread.is_sticky %} {{ pgettext('thread_type', 'Sticky') }} {% endif %} {{ thread.title }} {{ display_name(thread.creator) }} {{ thread.replies }} {{ datetimeformat(thread.last_post.created) }}
{{ _('by {username}')|fe(profile_url=profile_url(thread.last_post.creator), username=display_name(thread.last_post.creator)) }}
{{ threads|paginator }} {% else %}

{{ _('There are no threads. Maybe you should create some!') }}

{% endif %}
{% endblock %}