{# vim: set ts=2 et sts=2 sw=2: #} {% extends "kbforums/base.html" %} {# L10n: {d} is the name of the document. #} {% set title = _('{l} Discussions | Knowledge Base')|f(l=locale_name) %} {% block content %}

{{ _('{l} Knowledge Base Discussions')|f(l=locale_name) }}

{% if user.is_authenticated() %}
{{ csrf() }} {% if is_watching_locale %} {% else %} {% endif %}
{% endif %}
    {% if user.is_authenticated() %}
  1. {{ _('Watch') }}
  2. {% endif %}
  3. {{ _('Title') }}
  4. {{ _('Author') }}
  5. {{ _('Replies') }}
  6. {{ _('Last Post') }}
{% if threads.object_list %}
    {% for thread in threads.object_list %}
  1. {% if user.is_authenticated() %}
    {{ csrf() }} {% if thread.watches.filter(user=request.user) %} {% set watch = _('You are watching this thread') %} {% else %} {% set watch = _('You are not watching this thread') %} {% endif %}
    {% endif %}
    {% trans thread_url=thread.get_absolute_url(), thread_title=thread.title, document_discussion_url=url('wiki.discuss.threads',thread.document.slug), document=thread.document %} {{ thread_title }}
    in {{ document }} {% endtrans %}
    {{ 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 %}