philomena/lib/philomena_web/templates/notification/_comment.html.slime
2024-07-28 12:39:11 -04:00

22 lines
825 B
Text

- comment = @notification.comment
- image = @notification.image
.flex.flex--centered.flex__fixed.thumb-tiny-container.spacing-right
= render PhilomenaWeb.ImageView, "_image_container.html", image: image, size: :thumb_tiny, conn: @conn
.flex.flex--centered.flex__grow
div
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: comment, conn: @conn
' commented on
strong>
= link "##{image.id}", to: ~p"/images/#{image}" <> "#comments"
=> pretty_time @notification.updated_at
.flex.flex--centered.flex--no-wrap
a.button.button--separate-right title="Delete" href=~p"/images/#{image}/read" data-method="post" data-remote="true"
i.fa.fa-trash
a.button title="Unsubscribe" href=~p"/images/#{image}/subscription" data-method="delete" data-remote="true"
i.fa.fa-bell-slash