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

25 lines
851 B
Text
Raw Permalink Normal View History

2019-11-16 04:50:58 +01:00
- forum = @notification.actor
- topic = @notification.actor_child
.flex.flex--centered.flex__grow
div
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: topic, conn: @conn
=> @notification.action
2019-11-16 04:50:58 +01:00
' titled
2019-11-16 04:50:58 +01:00
strong>
= link topic.title, to: ~p"/forums/#{forum}/topics/#{topic}"
2019-11-16 04:50:58 +01:00
' in
2019-11-16 04:50:58 +01:00
=> 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}/read" data-method="post" data-remote="true" data-fetchcomplete-hide="#notification-#{@notification.id}"
i.fa.fa-trash
a.button title="Unsubscribe" href=~p"/forums/#{forum}/subscription" data-method="delete" data-remote="true" data-fetchcomplete-hide="#notification-#{@notification.id}"
i.fa.fa-bell-slash