{# 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 #} {% if current_user.is_authenticated -%} {% set collapsed = (post_reply.score <= current_user.reply_collapse_threshold) 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 -%}
reply to: {{ post_reply.post.title | truncate(80, True) }} 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 -%}
{{ moment(post_reply.posted_at).fromNow(refresh=True) }} {% if post_reply.edited_at -%}, edited {{ moment(post_reply.edited_at).fromNow(refresh=True) }} {% endif -%}
{% if post_reply.reports and current_user.is_authenticated and post_reply.post.community.is_moderator(current_user) -%} {% endif -%}
{{ post_reply.body_html | community_links | safe }}
{% if post_reply.post.comments_enabled -%} reply {% endif -%}
{% if not disable_voting -%} {% with comment=post_reply, community=post_reply.post.community -%} {% include "post/_comment_voting_buttons.html" -%} {% endwith -%} {% endif -%}
{% if collapsed -%} {% else -%} {% endif -%}
{% if current_user.is_authenticated -%} {% with comment=dict(comment=post_reply) -%} {% include "post/_reply_notification_toggle.html" -%} {% endwith -%} {% endif -%}
{% if not post_reply.author.indexable -%}{% endif -%} {% if collapsed -%} {% endif -%}