{% load automarkup %} {% load guardian_tags %} {% get_obj_perms request.user for forum as "forum_user_perms" %}
{{ post.subject }}
{% automarkup post.text %}
{% with id_str=post.id|stringformat:"s" %} {% with thread_str="thread-"|add:id_str %}
{% if post.motion %} {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='motion' parent_id=post.id origin=thread_str|add:"-origin" target=thread_str|add:"-new" text="Comment on this Motion" %} {% else %} {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='post' parent_id=post.id origin=thread_str|add:"-origin" target=thread_str|add:"-new" text="Reply" %} {% endif %}
{% endwith %} {% endwith %}
{% if post.followup_posts %} {% for followup in post.followup_posts.all %}
{% endfor %} {% endif %}