{% extends "base.html" %} {% 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 %}

{{ render_form(form) }} {% if markdown_editor %} {% 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 %}
{% macro render_comment(comment) %}
{% with comment=comment['comment'] %} {% include "post/_voting_buttons.html" %} {% endwith %}
{% if comment['comment'].score <= -10 %} [+] show {% else %} [-] hide {% endif %}
{% if comment['comment'].author.deleted %} [deleted] {% else %} {% if comment['comment'].author.avatar_id and comment['comment'].score > -10 and not low_bandwidth %} Avatar {% endif %} {{ comment['comment'].author.display_name() }} {% endif %} {% if comment['comment'].author.created_recently() %} {% endif %} {% if comment['comment'].author.id != current_user.id %} {% if comment['comment'].author.reputation < -10 %} {% elif comment['comment'].author.reputation < 0 %} {% 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 | safe }}
{% if current_user.is_authenticated and current_user.verified %} {% if post.comments_enabled %} reply {% endif %} {% if current_user.id == comment['comment'].author.id %} {% include "post/_reply_notification_toggle.html" %} {% endif %} {% 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 %}
{% if current_user.is_authenticated and community_membership(current_user, post.community) %} {{ _('Leave') }} {% else %} {{ _('Join') }} {% endif %}

{{ _('About community') }}

{{ post.community.description_html|safe if post.community.description_html else '' }}

{{ post.community.rules_html|safe if post.community.rules_html else '' }}

{% if len(mods) > 0 and not post.community.private_mods %}

Moderators

{% endif %}
{% if is_moderator %}

{{ _('Community Settings') }}

{% endif %}
{% endblock %}