{% load automarkup %} {% load guardian_tags %} {% get_obj_perms request.user for forum as "forum_user_perms" %} {% with post.get_followups|length as nr_followup_threads %}
{{ post.posted_by.first_name }} {{ post.posted_by.last_name }} on {{ post.posted_on|date:"Y-m-d" }} {% include 'permalink.html' with object=post %}
{% if "Re:" not in post.subject %}{{ post.subject }}{% endif %}
{% automarkup post.text %} {% if post.motion %}
{% endif %}
{% if posting_open %} {% if post.motion %} {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='motion' parent_id=post.id text="Comment on this Motion" %} {% else %} {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='post' parent_id=post.id text="Reply" %} {% endif %} {% endif %}
{% if nr_followup_threads > 0 %} Show/Collapse {{ nr_followup_threads }} followup thread{{ nr_followup_threads|pluralize }} {% else %} {% endif %}
{% for followup in post.get_followups %}
{% endfor %}
{% endwith %}
{% if posting_open %} {% if post.motion %} {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='motion' parent_id=post.parent_object_id text="Comment on this Motion" %} {% else %} {% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='post' parent_id=post.parent_object_id text="Reply" %} {% endif %} {% endif %}
{% include "forums/_hx_post_form_button.html" with slug=forum.slug parent_model='forum' parent_id=forum.id text="Add a new Post" %}