{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} {% extends 'themes/' + theme() + '/base.html' %} {% else %} {% extends "base.html" %} {% endif %} %} {% from 'bootstrap/form.html' import render_form %} {% block app_content %}
{% include 'post/_post_full.html' %} {% if post.comments_enabled %} {% if current_user.is_authenticated %} {% if current_user.verified %}

{% if post.community.ap_id and '@beehaw.org' in post.community.ap_id %}

{{ _('This post is hosted on beehaw.org which has higher standards of behaviour than most places. Be nice.') }}

{% endif %} {% if post.community.posting_warning %}

{{ post.community.posting_warning|safe }}

{% endif %} {{ render_form(form) }} {% if not low_bandwidth %} {% if markdown_editor %} {% else %} {% endif %} {% endif %}
{% if replies %}
{% endif %}
{% else %}

{{ _('Verify your email address to comment') }}

{% endif %} {% else %}

{{ _('Log in to comment') }}

{% endif %} {% else %}

{{ _('Comments are disabled.') }}

{% endif %} {% if replies %}

{{ post.reply_count }} {{ _('Comments') }}

{% macro render_comment(comment) %}
{% if not comment['comment'].author.indexable %}{% endif %}
{% if comment['comment'].author.deleted %} [deleted] {% else %} {% if comment['comment'].author.avatar_id and comment['comment'].score > -10 and not low_bandwidth %} {% endif %} {{ comment['comment'].author.display_name() }} {% endif %} {% if comment['comment'].author.created_recently() %} {% endif %} {% if comment['comment'].author.bot %} {% endif %} {% if comment['comment'].author.id != current_user.id %} {% if comment['comment'].author.reputation < -10 %} {% elif comment['comment'].author.reputation < 0 %} {% endif %} {% if current_user.is_authenticated and current_user.comment_length_warning and comment['comment'].author.average_comment_length and comment['comment'].author.average_comment_length <= current_user.comment_length_warning %} {% endif %} {% endif %} {% if comment['comment'].author.id == post.author.id %}[OP]{% endif %} {{ moment(comment['comment'].posted_at).fromNow(refresh=True) }}{% if comment['comment'].edited_at %}, edited {{ moment(comment['comment'].edited_at).fromNow(refresh=True) }} {% endif %} {% if comment['comment'].reports and current_user.is_authenticated and post.community.is_moderator(current_user)%} {% endif %}
{{ comment['comment'].body_html | community_links | safe }}
{% if not comment['comment'].author.indexable %}{% endif %}
{% if post.comments_enabled %} reply {% endif %}
{% with comment=comment['comment'] %} {% include "post/_comment_voting_buttons.html" %} {% endwith %}
{% if comment['comment'].score <= -10 %} {% else %} {% endif %}
{% if current_user.is_authenticated and current_user.verified %} {% include "post/_reply_notification_toggle.html" %} {% endif %}
{% if comment['replies'] %} {% if comment['comment'].depth <= THREAD_CUTOFF_DEPTH %}
{% for reply in comment['replies'] %} {{ render_comment(reply) | safe }} {% endfor %}
{% else %} {% endif %} {% endif %}
{% if comment['comment'].score <= -10 %} {% endif %} {% endmacro %}
{% for reply in replies %} {{ render_comment(reply) | safe }} {% endfor %}
{% endif %}
{% endblock %}