{% from 'common/macros.html' import pager, babycode_editor_form, full_post %} {% extends "base.html" %} {% block title %}{{ thread.title }}{% endblock %} {% block content %} {% set can_post = false %} {% set can_lock = false %} {% set can_subscribe = false %} {% if active_user %} {% set can_subscribe = true %} {% set can_post = (not thread.is_locked and not active_user.is_guest()) or active_user.is_mod() %} {% set can_lock = ((active_user.id | int) == (thread.user_id | int)) or active_user.is_mod() %} {% endif %}
{% for post in posts %} {{ full_post(post = post, active_user = active_user, is_latest = loop.index == (posts | length)) }} {% endfor %}
{% if can_post %}

Respond to "{{ thread.title }}"

{{ babycode_editor_form(ta_name = "post_content")}} {% endif %}
Are you sure you want to delete the highlighted post?
{% endblock %}