{# vim: set ts=2 et sts=2 sw=2: #} {% extends "kbforums/base.html" %} {# L10n: {d} is the name of the document. #} {% set title = _('{d} Discussion | Knowledge Base')|f(d=document.title) %} {% set crumbs = [(url('wiki.category', document.category), document.get_category_display()), (document.get_absolute_url(), document.title), (None, _('Discuss'))] %} {% block content %}

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

{% if is_watching_forum %}{{ _('Watching') }}{% endif %}
{% if user.is_authenticated() %}
{{ csrf() }} {% if is_watching_forum %} {% set watch = _('Stop watching') %} {% else %} {% set watch = _('Watch this forum') %} {% endif %}
{% endif %} {{ _('Post a new thread') }}
  1. {{ _('Type') }}
  2. {{ _('Title') }}
  3. {{ _('Author') }}
  4. {{ _('Replies') }}
  5. {{ _('Last Post') }}
{% if threads.object_list %}
    {% for thread in threads.object_list %}
  1. {% if thread.is_locked %} {{ _('Locked', 'thread_type') }} {% endif %} {% if thread.is_sticky %} {{ _('Sticky', 'thread_type') }} {% endif %}
    {{ thread.replies }}
    {{ datetimeformat(thread.last_post.created) }}
    {{ _('by {username}')|fe(profile_url=profile_url(thread.last_post.creator), username=thread.last_post.creator.username) }}

  2. {% endfor %}
{{ threads|paginator }} {% else %}

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

{% endif %}
{% endblock %}