philomena/lib/philomena_web/templates/notification/_topic.html.slime
2024-07-29 19:51:25 -04:00

23 lines
800 B
Text

- topic = @notification.topic
- forum = topic.forum
.flex.flex--centered.flex__grow
div
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: topic, conn: @conn
' posted a new topic titled
strong>
= link topic.title, to: ~p"/forums/#{forum}/topics/#{topic}"
' in
=> link forum.name, to: ~p"/forums/#{forum}"
=> pretty_time @notification.updated_at
.flex.flex--centered.flex--no-wrap
a.button.button--separate-right title="Delete" href=~p"/forums/#{forum}/topics/#{topic}/read" data-method="post" data-remote="true" data-click-hideparent=".notification"
i.fa.fa-trash
a.button title="Unsubscribe" href=~p"/forums/#{forum}/subscription" data-method="delete" data-remote="true" data-click-hideparent=".notification"
i.fa.fa-bell-slash