{% extends "cranefly/layout.html" %} {% import "_forms.html" as form_theme with context %} {% import "cranefly/editor.html" as editor with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=thread.name,parent=_("Private Threads"),page=pagination['page']) }}{% endblock %} {% block breadcrumb %}{{ super() }}
  • {% trans %}Private Threads{% endtrans %}
  • {{ thread.name }} {%- endblock %} {% block container %}
    {% if message %}
    {{ macros.draw_message(message) }}
    {% endif %}
    {{ pager() }} {% if acl.threads.can_reply(forum, thread) and participants|length > 1 %} {% trans %}Reply{% endtrans %} {% endif %} {% if watcher %}
    {% if watcher.email %}
    {% else %}
    {% endif %} {% else %}
    {% endif %} {% if ignored_posts %}
    {% endif %}
    {% for post in posts %}
    {% if post.message %}
    {{ macros.draw_message(post.message) }}
    {% endif %} {% if post.deleted and not acl.threads.can_see_deleted_posts(forum) %}
    {% if post.user_id %} {% else %} {% endif %}
    {% if post.user_id %} {% if post.user.get_title() %} {{ user_label(post.user) }}{% endif %} {% else %} {% endif %} {% if post.edits %} {% if acl.threads.can_see_changelog(user, forum, post) %} {% trans edits=post.edits %}One edit{% pluralize %}{{ edits }} edits{% endtrans %} {% else %} {% trans edits=post.edits %}One edit{% pluralize %}{{ edits }} edits{% endtrans %} {% endif %} {% endif %}
    #{{ pagination['start'] + loop.index }} {% if not post.is_read %}
    {% trans %}New{% endtrans %}
    {% endif %}
    {% trans user=edit_user(post), date=post.edit_date|reltimesince|low %}{{ user }} has deleted this reply {{ date }}{% endtrans %}
    {% elif post.ignored %}
    #{{ pagination['start'] + loop.index }} {% if not post.is_read %}
    {% trans %}New{% endtrans %}
    {% endif %}
    {% trans %}This reply was posted by user that is on your ignored list.{% endtrans %}
    {% else %}
    {% if post.user_id %} {% else %} {% endif %}
    {% if post.user_id %} {% if post.user.get_title() %} {{ user_label(post.user) }}{% endif %} {% else %} {% endif %} {% if post.edits %} {% if acl.threads.can_see_changelog(user, forum, post) %} {% trans edits=post.edits %}One edit{% pluralize %}{{ edits }} edits{% endtrans %} {% else %} {% trans edits=post.edits %}One edit{% pluralize %}{{ edits }} edits{% endtrans %} {% endif %} {% endif %} {% if posts_form %} {% endif %} #{{ pagination['start'] + loop.index }}
    {% if post.protected and acl.threads.can_protect(forum) %} {% trans %}Protected{% endtrans %} {% endif %} {% if post.deleted %} {% trans %}Deleted{% endtrans %} {% endif %} {% if post.moderated %} {% trans %}Unreviewed{% endtrans %} {% endif %} {% if post.reported %} {% trans %}Reported{% endtrans %} {% endif %} {% if not post.is_read %} {% trans %}New{% endtrans %} {% endif %}
    {{ post.post_preparsed|markdown_final|safe }}
    {% if post.user.signature %}
    {{ post.user.signature_preparsed|markdown_final|safe }}
    {% endif %}
    {% endif %}
    {% if post.checkpoint_set.all() %}
    {% for checkpoint in post.checkpoint_set.all() %}

    {%- if checkpoint.action == 'limit' -%} {% trans %}This thread has reached its post limit and has been closed.{% endtrans %} {%- elif checkpoint.action == 'accepted' -%} {% trans user=checkpoint_user(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} accepted this thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'closed' -%} {% trans user=checkpoint_user(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} closed this thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'opened' -%} {% trans user=checkpoint_user(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} opened this thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'deleted' -%} {% trans user=checkpoint_user(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} deleted this thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'undeleted' -%} {% trans user=checkpoint_user(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} restored this thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'invited' -%} {% trans user=checkpoint_user(checkpoint), invited=checkpoint_target(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} added {{ invited }} to thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'removed' -%} {% trans user=checkpoint_user(checkpoint), removed=checkpoint_target(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} removed {{ removed }} from thread {{ date }}{% endtrans %} {%- elif checkpoint.action == 'left' -%} {% trans user=checkpoint_user(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} left thread {{ date }}{% endtrans %} {%- endif -%} {% if user.is_authenticated() %} {% if acl.threads.can_delete_checkpoint(forum) %} {% if checkpoint.deleted %}
    {% else %}
    {% endif %} {% endif %} {% if acl.threads.can_delete_checkpoint(forum) == 2 %}
    {% endif %} {% endif %}
    {% endfor %}
    {% endif %} {% endfor %}
    {% if thread_form or posts_form %}
    {% if thread_form%}
    {{ form_theme.input_select(thread_form['thread_action'],width=3) }}
    {% endif %} {% if posts_form%}
    {{ form_theme.input_select(posts_form['list_action'],width=3) }}
    {% endif %}
    {% endif %}
    {{ pager(false) }} {% if acl.threads.can_reply(forum, thread) and participants|length > 1 %} {% trans %}Reply{% endtrans %} {% else %} {% endif %}
    {% if acl.threads.can_reply(forum, thread) and participants|length > 1 %}
    {% trans %}Your Avatar{% endtrans %} {{ editor.editor(quick_reply.post, _('Post Reply'), extra=editor_extra()) }}
    {% endif %}

    {% trans participants=participants|length -%} One participant {%- pluralize -%} {{ participants }} participants {%- endtrans %}

      {% for participant in participants %}
    • {{ participant.username }} {% if user.pk == thread.start_poster_id or acl.private_threads.is_mod() %}
      {% endif %}
    • {% endfor %}
    {% if participants|length < 2%}

    {% trans %}This thread has too few participants. Invite other users to open it for new replies.{% endtrans %}

    {% endif %}

    {% trans %}Invite User{% endtrans %}

    {{ form_theme.input_text(invite_form.fields.username, width="2", attrs={'placeholder':_("User to invite...")}) }}
    {% endblock %} {% block stylesheets %}{{ super() }} {% endblock %} {% block javascripts -%}{{ super() }} {% if acl.threads.can_reply(forum, thread) %} {{ editor.js() }} {% endif %} {%- endblock %} {% macro user_label(user) -%} <{% if user.rank and user.rank.as_tab %}a href="{% url 'users' slug=user.rank.slug %}"{% else %}span{% endif %} class="label post-author-label{% if user.rank and user.rank.style %} post-label-{{ user.rank.style }}{% endif %}">{{ user.get_title() }} {%- endmacro %} {% macro pager(extra=true) %} {% endmacro %} {% macro checkpoint_user(checkpoint) -%} {%- if checkpoint.user_id -%} {{ checkpoint.user_name }} {%- else -%} {{ checkpoint.user_name }} {%- endif -%} {%- endmacro %} {% macro checkpoint_target(checkpoint) -%} {%- if checkpoint.target_user_id -%} {{ checkpoint.target_user_name }} {%- else -%} {{ checkpoint.target_user_name }} {%- endif -%} {%- endmacro %} {% macro edit_user(post) -%} {%- if post.edit_user_id -%} {{ post.edit_user_name }} {%- else -%} {{ post.edit_user_name }} {%- endif -%} {%- endmacro %} {% macro editor_extra() %} {% endmacro %}