{% if post.is_pinned %}{% endif %}
{% if post.is_locked %}{% endif %}
{{ post.subject }}
{{ post.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
ANSI view
{% if current_user.is_authenticated %}
{% endif %}
{% set msg_type = 'post' %}{% set msg_id = post.id %}
{% include '_vote_buttons.html' %}
{{ post.content | msgbody_rich }}
{{ post.content | markdown }}
{% if post.author and post.author.signature %}
-- {{ post.author.signature }}
{% endif %}
Posted by {{ post.author.username }}
{% set _gm = (post.author.group_memberships.first() if post.author.group_memberships else None) %}
{% if _gm and _gm.group and _gm.group.tag %}
{{ _gm.group.tag }}
{% endif %}
in {{ post.board.name }}
{% if current_user.is_authenticated %}
{% if current_user.is_admin or (current_user.moderating and (current_user.moderating | selectattr('board_id', 'equalto', post.board_id) | list | length) > 0) %}
{% endif %}
{% if current_user.id == post.author_id or current_user.is_admin %}
{% endif %}
{% if current_user.is_authenticated %}
{% endif %}
{% if current_user.is_authenticated and (current_user.id == reply.author_id or current_user.is_admin) %}
{% endif %}
{% endfor %}
{% endif %}
{% if current_user.is_authenticated %}
{% set reactions = (post.reactions | list) if post.reactions else [] %}
{% set my_kinds = (reactions | selectattr('user_id', 'equalto', current_user.id) | map(attribute='kind') | list) %}
{% set rcount = {} %}
{% for r in reactions %}
{% set _ = rcount.update({r.kind: rcount.get(r.kind, 0) + 1}) %}
{% endfor %}
{% for kind, label in [('like','👍'),('heart','❤️'),('lol','😂'),('wow','😮'),('sad','😢')] %}
{% endfor %}
{% endif %}
{% if post.is_locked and not current_user.is_admin %}