Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions app/views/events/_followers_modal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
<span class="w-full flex gap-2 items-center align-middle">
<%= user_mention event_follow.user %>
<div class="flex-grow"></div>
<%= pop_icon_to "member-remove",
follow_path(event_follow),
class: "error",
data: {
turbo_frame: "_top",
turbo_method: :delete,
turbo_confirm: "Are you sure you want to remove this follower?",
} %>
<% if policy(event_follow).destroy? %>
<%= pop_icon_to "member-remove",
follow_path(event_follow),
class: "error",
data: {
turbo_frame: "_top",
turbo_method: :delete,
turbo_confirm: "Are you sure you want to remove this follower?",
} %>
<% end %>
</span>
</li>
<% end %>
Expand Down