mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-28 13:57:59 +01:00
23 lines
963 B
Text
23 lines
963 B
Text
div
|
|
- link_path = Routes.forum_topic_path(@conn, :show, @post.topic.forum, @post.topic, post_id: @post.id) <> "#post_#{@post.id}"
|
|
- safe_author = markdown_safe_author(@post)
|
|
- quote_body = if @post.hidden_from_users, do: "", else: @post.body
|
|
|
|
a.communication__interaction href=Routes.forum_topic_post_report_path(@conn, :new, @post.topic.forum, @post.topic, @post)
|
|
i.fa.fa-flag>
|
|
' Report
|
|
|
|
a.communication__interaction.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.communication__interaction.post-reply href=link_path data-reply-url=link_path data-author=safe_author
|
|
i.fa.fa-reply>
|
|
' Reply
|
|
|
|
= if can?(@conn, :edit, @post) do
|
|
span.owner-options
|
|
strong
|
|
a.communication__interaction href=Routes.forum_topic_post_path(@conn, :edit, @post.topic.forum, @post.topic, @post)
|
|
i.fas.fa-edit>
|
|
' Edit
|