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

8 lines
518 B
Text
Raw Normal View History

2019-11-16 04:50:58 +01:00
= if @notification.actor do
.block.block--fixed.flex.notification id="notification-#{@notification.id}"
2019-11-16 04:50:58 +01:00
= 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
=> render PhilomenaWeb.NotificationView, notification_template_path(@notification.actor_type), notification: @notification, conn: @conn