philomena/lib/philomena_web/templates/post/_post_options.html.slime

24 lines
939 B
Text
Raw Normal View History

2019-10-06 23:31:48 +02:00
div
2024-06-06 22:28:35 +02:00
- link_path = ~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}?#{[post_id: @post.id]}" <> "#post_#{@post.id}"
- safe_author = markdown_safe_author(@post)
2019-11-27 02:45:57 +01:00
- quote_body = if @post.hidden_from_users, do: "", else: @post.body
2024-06-06 22:28:35 +02:00
a.communication__interaction href=~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/reports/new"
2024-05-31 20:07:00 +02:00
i.fa.fa-flag>
' Report
2019-11-27 02:45:57 +01:00
a.communication__interaction.post-reply.post-reply-quote href=link_path data-reply-url=link_path data-author=safe_author data-post=quote_body
2019-10-06 23:31:48 +02:00
i.fa.fa-quote-right>
' Quote
2019-11-27 02:45:57 +01:00
a.communication__interaction.post-reply href=link_path data-reply-url=link_path data-author=safe_author
2019-11-30 06:26:12 +01:00
i.fa.fa-reply>
2019-10-06 23:31:48 +02:00
' Reply
2023-11-23 17:07:49 +01:00
2019-12-06 16:14:25 +01:00
= if can?(@conn, :edit, @post) do
span.owner-options
strong
2024-06-06 22:28:35 +02:00
a.communication__interaction href=~p"/forums/#{@post.topic.forum}/topics/#{@post.topic}/posts/#{@post}/edit"
2019-12-15 19:04:41 +01:00
i.fas.fa-edit>
2019-12-06 16:14:25 +01:00
' Edit