{# Options: teaser: Renders just a teaser disable_voting: Disable voting buttons (to prevent mass downvoting) no_collapse: Don't collapse for admin and moderator views show_deleted: Show deleted content (for admin views) children: replies to this reply #} {% if current_user.is_authenticated -%} {% set collapsed = ((post_reply.score <= current_user.reply_collapse_threshold) or post_reply.deleted) and not no_collapse -%} {% else -%} {% set collapsed = (post_reply.score <= -10) and not no_collapse -%} {% endif -%}
{% if not post_reply.author.indexable -%}{% endif -%} {% if teaser -%}
{% if post_reply.post.deleted: -%} reply to: [deleted post] {% else -%} reply to: {{ post_reply.post.title | truncate(80, True) }} {% endif -%} in {{ render_communityname(post_reply.post.community) }}
{% endif -%}
by {{ render_username(post_reply.author) }} {% if post_reply.author.id == post_reply.post.author.id -%} [OP] {% endif -%}
{{ arrow.get(post_reply.posted_at).humanize(locale=locale) }}{% if post_reply.edited_at -%}, edited {{ arrow.get(post_reply.edited_at).humanize(locale=locale) }}{% endif -%}
{% if post_reply.reports and current_user.is_authenticated and post_reply.post.community.is_moderator(current_user) -%} {% endif -%}
{% if post_reply.deleted -%} {% endif -%}
{% if post_reply.deleted and not show_deleted -%} {% if post_reply.deleted_by is none or post_reply.deleted_by != post_reply.user_id -%}

Deleted by moderator

{% else -%}

Deleted by author

{% endif -%} {% else -%} {{ post_reply.body_html | community_links | safe }} {% endif -%}
{% if post_reply.post.comments_enabled -%} {% if not post_reply.post.deleted and not post_reply.deleted -%} reply {% else -%} reply {% endif -%} {% endif -%}
{% with comment=post_reply, community=post_reply.post.community -%} {% include "post/_comment_voting_buttons.html" -%} {% endwith -%}
{% if collapsed -%} {% else -%} {% endif -%}
{% if current_user.is_authenticated and current_user.verified -%} {% with comment=dict(comment=post_reply) -%} {% include "post/_reply_notification_toggle.html" -%} {% endwith -%} {% endif -%}
{% if not post_reply.author.indexable -%}{% endif -%} {% if children -%}
{% if not THREAD_CUTOFF_DEPTH or post_reply.depth <= THREAD_CUTOFF_DEPTH -%} {% for reply in children -%} {% with post_reply=reply['comment'], children=reply['replies'] %} {% include 'post/_post_reply_teaser.html' %} {% endwith %} {% endfor -%} {% else -%} {% endif -%}
{% endif -%} {% if collapsed -%} {% endif -%}