{% extends "cranefly/layout.html" %} {% import "forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=_("Private Threads"),page=pagination['page']) }}{% endblock %} {% block breadcrumb %}{{ super() }}
  • {% trans %}Private Threads{% endtrans %} {%- endblock %} {% block container %}
    {% if message %}
    {{ macros.draw_message(message) }}
    {% endif %}
    {{ pager() }} {% if acl.threads.can_start_threads(forum) %} {% trans %}New Thread{% endtrans %} {% endif %}
    {% trans %}Thread{% endtrans %}
    {% trans %}Activity{% endtrans %}
    {% if list_form %}
    {% endif %}
    {% for thread in threads %}
    {% if thread.is_read %} {% else %} {% endif %} {{ thread.name|short_string(70) }} {{ macros.thread_flags(thread) }}
    {% trans user=thread_starter(thread), start=thread.start|reldate|low %}by {{ user }}, {{ start }}{% endtrans %}
    {% if settings.avatars_on_threads_list %}
    {% if thread.last_poster_id %} {% else %} {% endif %}
    {% endif %}
    {{ thread_reply(thread) }}, {{ thread.last|reldate|low }}
    {{ replies(thread.replies) }}
    {% if list_form %} {% endif %}
    {% else %}
    {% trans %}You are not participating in any private discussions.{% endtrans %}
    {% endfor %} {% if list_form %}
    {{ form_theme.field(list_form.list_action, attrs={'class': 'span3'}) }}
    {% endif %}
    {{ pager() }} {% if acl.threads.can_start_threads(forum) %} {% trans %}New Thread{% endtrans %} {% endif %}
    {% endblock %} {% macro replies(thread_replies) -%} {% trans count=thread_replies, replies=thread_replies|intcomma -%} {{ replies }} reply {%- pluralize -%} {{ replies }} replies {%- endtrans %} {%- endmacro %} {% macro thread_starter(thread) -%} {% if thread.start_poster_id %}{{ thread.start_poster_name }}{% else %}{{ thread.start_poster_name }}{% endif %} {%- endmacro %} {% macro thread_reply(thread) -%} {% if thread.last_poster_id %}{{ thread.last_poster_name }}{% else %}{{ thread.last_poster_name }}{% endif %} {%- endmacro %} {% macro pager() %} {% if pagination['total'] > 0 %} {% endif %} {% endmacro %} {% block javascripts -%} {{ super() }} {%- if list_form %} {% endif %} {%- endblock %}