philomena/lib/philomena_web/templates/notification/_gallery.html.heex
2024-06-01 23:50:36 -04:00

18 lines
938 B
Text

<div class="flex flex--centered flex__grow">
<div>
<%= render(PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: @notification.actor.creator}, conn: @conn) %>
<%= @notification.action %>
<strong>
<%= link(@notification.actor.title, to: ~p"/galleries/#{@notification.actor}") %>
</strong>
<%= pretty_time(@notification.updated_at) %>
</div>
</div>
<div class="flex flex--centered flex--no-wrap">
<a class="button button--separate-right" data-fetchcomplete-hide={"#notification-#{@notification.id}"} data-method="post" data-remote="true" href={~p"/galleries/#{@notification.actor}/read"} title="Delete">
<i class="fa fa-trash"></i>
</a>
<a class="button" data-fetchcomplete-hide={"#notification-#{@notification.id}"} data-method="delete" data-remote="true" href={~p"/galleries/#{@notification.actor}/subscription"} title="Unsubscribe">
<i class="fa fa-bell-slash"></i>
</a>
</div>