2024-12-20 00:44:49 +07:00
{% if current_user.is_authenticated -%}
{% if post_reply.user_id == current_user.id -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_edit', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline" rel = "nofollow" > < span class = "fe fe-edit" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Edit') }}< / a > < / li >
{% endif -%}
{% if post_reply.user_id == current_user.id or post.community.is_moderator() or post.community.is_owner() or current_user.is_admin() -%}
{% if post_reply.deleted -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_restore', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline confirm_first" rel = "nofollow" > < span class = "fe fe-arrow-up" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Restore') }}< / a > < / li >
{% if not post_reply.has_replies() -%}
{% if post.community.is_moderator() or current_user.is_admin() or (post_reply.user_id == current_user.id and post_reply.deleted_by == post_reply.user_id) -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_purge', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline confirm_first" rel = "nofollow" > < span class = "fe fe-delete red" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Purge') }}< / a > < / li >
{% endif -%}
{% endif -%}
{% else -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_delete', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline confirm_first" rel = "nofollow" > < span class = "fe fe-delete" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Delete') }}< / a > < / li >
{% endif -%}
{% endif -%}
{% if existing_bookmark -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_remove_bookmark', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline" rel = "nofollow" > < span class = "fe fe-bookmark" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Remove bookmark') }}< / a > < / li >
{% else -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_bookmark', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline" rel = "nofollow" > < span class = "fe fe-bookmark" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Bookmark') }}< / a > < / li >
{% endif -%}
{% if post_reply.user_id != current_user.id -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_block_user', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline" > < span class = "fe fe-block" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Block author @%(author_name)s', author_name=post_reply.author.user_name) }}< / a > < / li >
{% if post_reply.instance_id and post_reply.instance_id != 1 -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_block_instance', post_id=post.id, comment_id=post_reply.id) }}" class = "dropdown-item no-underline" > < span class = "fe fe-block" > < / span >
2024-12-20 00:44:49 +07:00
{{ _("Hide every post from author's instance: %(name)s", name=post_reply.instance.domain) }}< / a > < / li >
{% endif -%}
{% endif -%}
{% if current_user.is_authenticated and (current_user.is_admin() or current_user.is_staff()) -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_view_voting_activity', comment_id=post_reply.id) }}" class = "dropdown-item no-underline" rel = "nofollow" > < span class = "fe fe-sticky-left" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('View Voting Activity') }}< / a > < / li >
{% endif -%}
{% endif -%}
2024-12-21 22:04:13 +07:00
< li > < a href = "{{ url_for('post.post_reply_report', post_id=post.id, comment_id=post_reply.id) }}" rel = "nofollow" class = "dropdown-item no-underline" > < span class = "fe fe-report" > < / span >
2024-12-20 00:44:49 +07:00
{{ _('Report to moderators') }}< / a > < / li >