mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
19 lines
No EOL
914 B
Text
19 lines
No EOL
914 B
Text
- topic = @notification.actor
|
|
- post = @notification.actor_child
|
|
|
|
.flex.flex--centered.flex__grow
|
|
div
|
|
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: post, conn: @conn
|
|
=> @notification.action
|
|
|
|
strong>
|
|
= link topic.title, to: Routes.forum_topic_path(@conn, :show, topic.forum, topic, post_id: post.id) <> "#post_#{post.id}"
|
|
|
|
=> pretty_time @notification.updated_at
|
|
|
|
.flex.flex--centered.flex--no-wrap
|
|
a.button.button--separate-right title="Delete" href=Routes.forum_topic_read_path(@conn, :create, topic.forum, topic) data-method="post" data-remote="true" data-fetchcomplete-hide="#notification-#{@notification.id}"
|
|
i.fa.fa-trash
|
|
|
|
a.button title="Unsubscribe" href=Routes.forum_topic_subscription_path(@conn, :delete, topic.forum, topic) data-method="delete" data-remote="true" data-fetchcomplete-hide="#notification-#{@notification.id}"
|
|
i.fa.fa-bell-slash |