{% extends "base.html" %} {% import "partials/forum_macros.html" as fm with context %} {% block body_class %}{% endblock %} {% block title %}{% if thread %}{{ thread.title }} — MoonBite Discussions{% else %}Thread not found — MoonBite{% endif %}{% endblock %} {% block meta_description %}{% if thread %}{{ thread.excerpt }}{% else %}A discussion thread on the MoonBite community forum.{% endif %}{% endblock %} {% block head_extra %} {% include "partials/forum_style.html" %} {% endblock %} {# One comment and, recursively, its replies. #} {% macro comment(c) -%}
{{ fm.av(c.author, official=c.is_official) }}
{{ fm.author(c, "span") }} {% if c.author == thread.author %}OP{% endif %}
{% if c.removed and not is_mod %}

This comment was removed by a moderator.

{% else %}
{% if c.removed %}

Removed: only moderators can see this.

{% endif %}{{ render_body(c.body) }}
{{ fm.vote('r', c.id, c.score, mine.get(c.id, 0), 'row') }} {% if not thread.locked or is_mod %}{% endif %} {{ fm.report_button('r', c.id) }} {{ fm.mod_button('r', c.id, 'restore' if c.removed else 'remove', 'Restore' if c.removed else 'Remove', link ~ '#c-' ~ c.id) }}
{% endif %}
{% if c.children %}
{% for ch in c.children %}{{ comment(ch) }}{% endfor %}
{% endif %}
{%- endmacro %} {% block content %}
{% if not thread %}

404

Post not found

This discussion doesn't exist, or it was removed.

All discussions
{% else %} {% set link = url_for('discussion_thread_page', thread_id=thread.id) %}
{% if error %}{% endif %}
{{ fm.vote('t', thread.id, thread.score, mine_thread) }}
{{ thread.category_name }} Posted by {{ fm.author(thread) }}
{% if thread.removed %}

Removed: only moderators can see this post.

{% endif %}

{% if thread.pinned %}Pinned {% endif %}{{ thread.title|emojify }}

{{ render_body(thread.body) }}
{{ fm.icon_comment() }} {{ thread.reply_count }} comment{{ '' if thread.reply_count == 1 else 's' }} {{ fm.report_button('t', thread.id) }}
{% if is_mod %}
Moderator {{ fm.mod_button('t', thread.id, 'unpin' if thread.pinned else 'pin', 'Unpin' if thread.pinned else 'Pin', link) }} {{ fm.mod_button('t', thread.id, 'unlock' if thread.locked else 'lock', 'Unlock' if thread.locked else 'Lock', link) }} {{ fm.mod_button('t', thread.id, 'restore' if thread.removed else 'remove', 'Restore' if thread.removed else 'Remove', link if not thread.removed else url_for('discussions_mod_page')) }}
{% endif %}
{% if thread.locked %}
A moderator locked this thread. You can read it, but new comments are closed.
{% endif %} {% if not thread.locked or is_mod %}
Join the conversation
{{ fm.honeypot() }}
{{ fm.format_hint() }}
{{ fm.as_official() }}
Public and stored on this server.
{% endif %}

{{ thread.reply_count }} comment{{ '' if thread.reply_count == 1 else 's' }}

{% if thread.reply_count > 1 %} {% endif %}
{% if thread.comments %}
{% for c in thread.comments %}{{ comment(c) }}{% endfor %}
{% else %}
No comments yetIf you know the answer, you're the first person who can help.
{% endif %}
{% endif %}
{% endblock %} {% block scripts_extra %}{% if thread %}{% include "partials/forum_script.html" %}{% endif %}{% endblock %}