{% 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=forum.name,page=pagination['page']) }}{% endblock %} {% block breadcrumb %}{{ super() }} {% for parent in parents %}
  • {{ parent.name }}
  • {% endfor %}
  • {{ thread.name }} {%- endblock %} {% block container %}
    {% if message %}
    {{ macros.draw_message(message) }}
    {% endif %}
    {{ pager() }} {% if user.is_authenticated() %} {% if acl.threads.can_reply(forum, thread) %} {% trans %}Reply{% endtrans %} {% endif %} {% if watcher %}
    {% if watcher.email %}
    {% else %}
    {% endif %} {% else %}
    {% endif %} {% if ignored_posts %}
    {% endif %} {% 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 user.is_authenticated() and 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 user.is_authenticated() %}
    {% if acl.users.can_see_users_trails() -%} {% trans %}Info{% endtrans %} {% endif %} {% if acl.threads.can_edit_thread(user, forum, thread, post) and thread.start_post_id == post.pk %} {% trans %}Edit{% endtrans %} {% elif acl.threads.can_edit_reply(user, forum, thread, post) %} {% trans %}Edit{% endtrans %} {%- endif %} {% if acl.threads.can_reply(forum, thread) %}{% trans %}Reply{% endtrans %}{% endif %}
    {% if post.pk == thread.start_post_id %}
    {% if acl.threads.can_delete_thread(user, forum, thread, post) %} {% if post.deleted %}
    {% trans %}Delete thread:{% endtrans %}
    {% else %}
    {% trans %}Delete thread:{% endtrans %}
    {% endif %} {% endif %} {% if acl.threads.can_delete_thread(user, forum, thread, post) == 2 %}
    {% endif %}
    {% elif post.pk != thread.start_post_id and acl.threads.can_delete_post(user, forum, thread, post) %}
    {% if acl.threads.can_delete_post(user, forum, thread, post) %} {% if post.deleted %}
    {% trans %}Delete reply:{% endtrans %}
    {% else %}
    {% trans %}Delete reply:{% endtrans %}
    {% endif %} {% endif %} {% if acl.threads.can_delete_post(user, forum, thread, post) == 2 -%}
    {% endif %}
    {% endif %} {% endif %} {% endfilter %}
    {% endif %}
    {% if post.checkpoints_visible %}
    {% for checkpoint in post.checkpoints_visible %}

    {%- 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 == 'moved' and acl.forums.can_see(checkpoint.old_forum_id) -%} {% trans user=checkpoint_user(checkpoint), forum=checkpoint_forum(checkpoint), date=checkpoint.date|reltimesince|low %}{{ user }} moved this thread from {{ forum }} {{ 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 user.is_authenticated() and (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 user.is_authenticated() and acl.threads.can_reply(forum, thread) %} {% trans %}Reply{% endtrans %} {% elif not user.is_authenticated() and not user.is_crawler() %} {% endif %}
    {% if user.is_authenticated() and acl.threads.can_reply(forum, thread) %}
    {% trans %}Your Avatar{% endtrans %} {{ editor.editor(quick_reply.post, _('Post Reply'), extra=editor_extra()) }}
    {% endif %}
    {% endblock %} {% block stylesheets %}{{ super() }} {% endblock %} {% block javascripts -%}{{ super() }} {% if user.is_authenticated() and 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_forum(checkpoint) -%} {%- if checkpoint.old_forum_id -%} {{ checkpoint.old_forum_name }} {%- else -%} {{ checkpoint.old_forum_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 %}