philomena/lib/philomena_web/templates/notification/_post.html.slime

20 lines
819 B
Text
Raw Normal View History

2024-07-08 00:09:20 +02:00
- topic = @notification.topic
- post = @notification.post
.flex.flex--centered.flex__grow
div
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: post, conn: @conn
' posted a new reply in
strong>
= link topic.title, to: ~p"/forums/#{topic.forum}/topics/#{topic}?#{[post_id: post.id]}" <> "#post_#{post.id}"
=> pretty_time @notification.updated_at
.flex.flex--centered.flex--no-wrap
2024-07-30 01:51:25 +02:00
a.button.button--separate-right title="Delete" href=~p"/forums/#{topic.forum}/topics/#{topic}/read" data-method="post" data-remote="true" data-click-hideparent=".notification"
2024-07-08 00:09:20 +02:00
i.fa.fa-trash
2024-07-30 01:51:25 +02:00
a.button title="Unsubscribe" href=~p"/forums/#{topic.forum}/topics/#{topic}/subscription" data-method="delete" data-remote="true" data-click-hideparent=".notification"
2024-07-08 00:09:20 +02:00
i.fa.fa-bell-slash