{% 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' %}

Back to main discussion

{% macro render_comment(comment) %}
{% with collapsed = comment['comment'].score < -10 -%} {{ render_username(comment['comment'].author) }} {% endwith -%} {% if comment['comment'].author.id == post.author.id %}[OP] {% endif %} {{ arrow.get(comment['comment'].posted_at).humanize(locale=locale) }}{% if comment['comment'].edited_at %}, edited {{ arrow.get(comment['comment'].edited_at).humanize(locale=locale) }} {% endif %} {% if comment['comment'].reports and current_user.is_authenticated and post.community.is_moderator(current_user)%} {% endif %}
{{ comment['comment'].body_html | safe }}
{% 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 and current_user.id == comment['comment'].author.id %} {% include "post/_reply_notification_toggle.html" %} {% endif %}
{% if comment['replies'] %}
{% for reply in comment['replies'] %} {{ render_comment(reply) | safe }} {% endfor %}
{% endif %}
{% endmacro %}
{% for reply in replies %} {{ render_comment(reply) | safe }} {% endfor %}
{% with community = post.community -%} {% include "_side_pane.html" %} {% endwith -%}
{% endblock %}