diff --git a/app/views/cards/_collection_settings.html.erb b/app/views/cards/_collection_settings.html.erb index 318eeb70c..a03b2e4bb 100644 --- a/app/views/cards/_collection_settings.html.erb +++ b/app/views/cards/_collection_settings.html.erb @@ -1,4 +1,4 @@ -<%= link_to edit_collection_path(collection), class: "btn tooltip" do %> +<%= link_to edit_collection_path(collection), class: "btn tooltip", data: { controller: "tooltip" } do %> <%= icon_tag "settings" %> Settings for <%= collection.name %> <% end %> diff --git a/app/views/cards/_webhooks.html.erb b/app/views/cards/_webhooks.html.erb index 2bdddaa3d..079308b29 100644 --- a/app/views/cards/_webhooks.html.erb +++ b/app/views/cards/_webhooks.html.erb @@ -1,4 +1,4 @@ -<%= link_to collection_webhooks_path(collection_id: collection), class: ["btn tooltip", {"btn--reversed": collection.webhooks.any?}] do %> +<%= link_to collection_webhooks_path(collection_id: collection), class: ["btn tooltip", {"btn--reversed": collection.webhooks.any?}], data: { controller: "tooltip" } do %> <%= icon_tag "world" %> Webhooks <% end %> diff --git a/app/views/cards/container/_gild.html.erb b/app/views/cards/container/_gild.html.erb index dc4298348..a489f08cd 100644 --- a/app/views/cards/container/_gild.html.erb +++ b/app/views/cards/container/_gild.html.erb @@ -1,10 +1,10 @@ <% if card.golden? %> - <%= button_to card_goldness_path(card), method: :delete, class: "btn btn--reversed tooltip" do %> + <%= button_to card_goldness_path(card), method: :delete, class: "btn btn--reversed tooltip", data: { controller: "tooltip" } do %> <%= icon_tag "golden-ticket" %> Demote to normal <% end %> <% else %> - <%= button_to card_goldness_path(card), class: "btn tooltip" do %> + <%= button_to card_goldness_path(card), class: "btn tooltip", data: { controller: "tooltip" } do %> <%= icon_tag "golden-ticket" %> Promote to golden <% end %> diff --git a/app/views/cards/container/_image.html.erb b/app/views/cards/container/_image.html.erb index de2341aa1..ed11fd5c8 100644 --- a/app/views/cards/container/_image.html.erb +++ b/app/views/cards/container/_image.html.erb @@ -1,11 +1,11 @@ <% 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 "picture-remove" %> Remove background image <% end %> <% elsif !card.closed? %> <%= form_with model: card, url: card_path(card), data: { controller: "form" } do |form| %> -