mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-11 11:38:01 +01:00
23 lines
1,003 B
Text
23 lines
1,003 B
Text
= if not @comment.hidden_from_users or can?(@conn, :hide, @comment) do
|
|
.flex.flex--normal-gap.flex--centered
|
|
= if not @comment.hidden_from_users do
|
|
- link_path = ~p"/images/#{@comment.image}" <> "#comment_#{@comment.id}"
|
|
- safe_author = PhilomenaWeb.PostView.markdown_safe_author(@comment)
|
|
- quote_body = if @comment.hidden_from_users, do: "", else: @comment.body
|
|
|
|
a.button href=~p"/images/#{@comment.image}/comments/#{@comment}/reports/new"
|
|
i.fa.fa-flag>
|
|
' Report
|
|
|
|
a.button.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
|
|
' Quote
|
|
|
|
a.button.post-reply href=link_path data-reply-url=link_path data-author=safe_author
|
|
i.fa.fa-reply
|
|
' Reply
|
|
|
|
= if not @comment.destroyed_content and can?(@conn, :edit, @comment) do
|
|
a.button href=~p"/images/#{@comment.image}/comments/#{@comment}/edit"
|
|
i.fas.fa-edit
|
|
' Edit
|