{% extends "sora/layout.html" %} {% load i18n %} {% load url from future %} {% import "_forms.html" as form_theme with context %} {% import "sora/editor.html" as editor with context %} {% import "sora/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 content %} {% if message %}{{ macros.draw_message(message) }}{% endif %}
    {{ pager() }} {% if user.is_authenticated() %} {% 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) %}
    #{{ pagination['start'] + loop.index }}
    {% trans user=edit_user(post), date=post.edit_date|reltimesince|low %}{{ user }} has deleted this reply {{ date }}{% endtrans %}
    {% else %}
    {% if user.is_authenticated() and posts_form %} {% endif %} #{{ pagination['start'] + loop.index }} {% if not post.is_read %} {% trans %}New{% endtrans %} {% endif %} {% if post.moderated %} {% trans %}Unreviewed{% endtrans %} {% endif %} {% if post.reported %} {% trans %}Reported{% endtrans %} {% endif %} {% if post.deleted %} {% trans %}Deleted{% endtrans %} {% endif %} {% if post.protected and acl.threads.can_protect(forum) %} {% trans %}Protected{% endtrans %} {% endif %}
    {{ post.post_preparsed|safe }}
    {% if post.user.signature %}
    {#

    {{ post.user.username }}, {{ post.date|reltimesince|low }}

    #} {% if post.user.signature %}
    {{ post.user.signature_preparsed|safe }}
    {% endif %}
    {% endif %}
    {% if post.edits %} {% if acl.threads.can_see_changelog(user, forum, post) %} {% trans count=post.edits %}One edit{% pluralize %}{{ count }} edits{% endtrans %} {% else %} {% trans count=post.edits %}One edit{% pluralize %}{{ count }} edits{% endtrans %} {% endif %} {% endif %} {% if user.is_authenticated() %} {% 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 %} {%- endif -%}
    {% endfor %}
    {% endif %} {% endfor %}
    {% if user.is_authenticated() and (thread_form or posts_form) %} {% endif %}
    {{ pager(false) }} {% if user.is_authenticated() and acl.threads.can_reply(forum, thread) %} {% endif %}
    {% if user.is_authenticated() and acl.threads.can_reply(forum, thread) %}
    {% trans %}Your Avatar{% endtrans %}
    {{ editor.editor(quick_reply.post, _('Post Reply')) }}
    {% endif %} {% endblock %} {% macro pager(extra=true) %} {% endmacro %} {% macro checkpoint_user(checkpoint) -%} {%- if checkpoint.user_id -%} {{ ('')|safe ~ (checkpoint.user_name) ~ ("")|safe }} {%- else -%} {{ checkpoint.user_name }} {%- endif -%} {%- endmacro %} {% macro edit_user(post) -%} {%- if post.edit_user_id -%} {{ ('')|safe ~ (post.edit_user_name) ~ ("")|safe }} {%- else -%} {{ post.edit_user_name }} {%- endif -%} {%- endmacro %} {% block javascripts -%} {{ super() }} {%- if user.is_authenticated() and acl.threads.can_start_threads(forum) %} {% endif %} {%- endblock %}