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

14 lines
1,012 B
Text
Raw Normal View History

2019-11-16 04:50:58 +01:00
= if @notification.actor do
.block.block--fixed.flex class="js-notification-id-#{@notification.id}"
= if @notification.actor_type == "Image" and @notification.actor do
.flex.flex--centered.flex__fixed.thumb-tiny-container.spacing-right
= render PhilomenaWeb.ImageView, "_image_container.html", image: @notification.actor, size: :thumb_tiny, conn: @conn
.flex.flex--centered.flex__grow
div
2019-11-16 05:38:42 +01:00
=> render PhilomenaWeb.NotificationView, notification_template_path(@notification.actor_type), notification: @notification, conn: @conn
2019-11-16 04:50:58 +01:00
=> pretty_time @notification.updated_at
.flex.flex--centered.flex--no-wrap
a.button.button--separate-right title="Delete" data-click-markread=@notification.id
i.fa.fa-trash
a.button title="Unsubscribe" data-subscription-id=@notification.actor_id data-subscription-type=@notification.actor_type data-click-togglesubscription="unwatch" data-click-hide=".js-notification-id-#{@notification.id}"
.fa.fa-bell-slash