2024-05-07 22:52:17 +02:00
|
|
|
.flex.flex--normal-gap.flex--centered
|
2019-11-27 02:45:57 +01:00
|
|
|
- link_path = Routes.image_path(@conn, :show, @comment.image) <> "#comment_#{@comment.id}"
|
2021-09-29 22:05:16 +02:00
|
|
|
- safe_author = PhilomenaWeb.PostView.markdown_safe_author(@comment)
|
2019-11-27 02:45:57 +01:00
|
|
|
- quote_body = if @comment.hidden_from_users, do: "", else: @comment.body
|
|
|
|
|
2024-05-31 20:07:00 +02:00
|
|
|
a.button.button--primary href=Routes.image_comment_report_path(@conn, :new, @comment.image, @comment)
|
|
|
|
i.fa.fa-flag>
|
|
|
|
' Report
|
2019-11-27 02:45:57 +01:00
|
|
|
|
2024-05-07 22:52:17 +02:00
|
|
|
a.button.button--primary.post-reply.post-reply-quote href=link_path data-reply-url=link_path data-author=safe_author data-post=quote_body
|
|
|
|
i.fa.fa-quote-right
|
2019-10-05 02:51:56 +02:00
|
|
|
' Quote
|
2019-11-27 02:45:57 +01:00
|
|
|
|
2024-05-07 22:52:17 +02:00
|
|
|
a.button.button--primary.post-reply href=link_path data-reply-url=link_path data-author=safe_author
|
|
|
|
i.fa.fa-reply
|
2019-10-05 02:51:56 +02:00
|
|
|
' Reply
|
2019-12-06 15:43:01 +01:00
|
|
|
|
|
|
|
= if can?(@conn, :edit, @comment) do
|
|
|
|
span.owner-options
|
|
|
|
strong
|
2024-05-07 22:52:17 +02:00
|
|
|
a.button.button--primary href=Routes.image_comment_path(@conn, :edit, @comment.image, @comment)
|
|
|
|
i.fas.fa-edit
|
2019-12-06 15:43:01 +01:00
|
|
|
' Edit
|