{% load automarkup %}
{% load guardian_tags %}
{% get_obj_perms request.user for forum as "forum_user_perms" %}
{{ post.subject }}
{{ post.posted_by.first_name }} {{ post.posted_by.last_name }} on {{ post.posted_on|date:"Y-m-d" }}
- {% include 'bi/link.html' %}
{% if post.parent and not post.motion %}
- regarding {{ post.parent }}
{% endif %}
{% 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 %}