<% if card.pinned_by? Current.user %>
- <%= button_to card_pin_path(card), method: :delete, class: "btn btn--reversed tooltip" do %>
+ <%= button_to card_pin_path(card), method: :delete, class: "btn btn--reversed tooltip", data: { controller: "tooltip" } do %>
<%= icon_tag "pinned" %>
Un-pin this card
<% end %>
<% else %>
- <%= button_to card_pin_path(card), class: "btn tooltip" do %>
+ <%= button_to card_pin_path(card), class: "btn tooltip", data: { controller: "tooltip" } do %>
<%= icon_tag "unpinned" %>
Pin this card
<% end %>
<% end %>
diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb
index 07247152e..7f2ec678b 100644
--- a/app/views/cards/show.html.erb
+++ b/app/views/cards/show.html.erb
@@ -29,7 +29,7 @@
<%= render "layouts/lightbox" do %>
<% if @card.image.attached? %>
- <%= button_to card_image_path(@card), method: :delete, class: "btn tooltip" do %>
+ <%= button_to card_image_path(@card), method: :delete, class: "btn tooltip", data: { controller: "tooltip" } do %>
<%= icon_tag "trash" %>
Remove background image
<% end %>
diff --git a/app/views/cards/watches/show.html.erb b/app/views/cards/watches/show.html.erb
index 1f845294c..4a2f9f1b3 100644
--- a/app/views/cards/watches/show.html.erb
+++ b/app/views/cards/watches/show.html.erb
@@ -1,11 +1,11 @@
<%= turbo_frame_tag dom_id(@card, :watch) do %>
<% if @card.watched_by? Current.user %>
- <%= button_to card_watch_path(@card), method: :delete, class: "btn btn--reversed tooltip" do %>
+ <%= button_to card_watch_path(@card), method: :delete, class: "btn btn--reversed tooltip", data: { controller: "tooltip" } do %>
<%= icon_tag "bell" %>
Stop watching
<% end %>
<% else %>
- <%= button_to card_watch_path(@card), class: "btn tooltip" do %>
+ <%= button_to card_watch_path(@card), class: "btn tooltip", data: { controller: "tooltip" } do %>
<%= icon_tag "bell-off" %>
Watch this
<% end %>
diff --git a/app/views/layouts/_lightbox.html.erb b/app/views/layouts/_lightbox.html.erb
index e1b077c84..c42e72c94 100644
--- a/app/views/layouts/_lightbox.html.erb
+++ b/app/views/layouts/_lightbox.html.erb
@@ -8,7 +8,7 @@
<%= yield %>
-