{% extends "base.html" %} {% block title %}{{ post.subject }} - {{ config.BBS_NAME }}{% endblock %} {% block content %}
{% 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 }}
{% 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 %}
{% endif %}
{% if replies %}
Replies ({{ replies|length }})
{% for reply, depth in replies %}
{{ reply.author.username }} {% if depth > 0 %} ↳ depth {{ depth }} {% endif %} {{ reply.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
{{ reply.content | msgbody_rich }}
{% if reply.author and reply.author.signature %}
--
{{ reply.author.signature }}
{% 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 %}
This thread is locked.
{% elif current_user.is_authenticated %}
Post Reply Replying to thread
{{ form.hidden_tag() }}
{{ form.content(class="form-control", rows=5, placeholder="Write your reply...") }} {% if form.content.errors %}
{% for error in form.content.errors %}{{ error }}{% endfor %}
{% endif %}
{{ form.submit(class="btn btn-primary") }}
{% else %}

Please login to reply to this post.

{% endif %} {% endblock %}