From 2e9273c6ab7df8f063dc0d4310993831d335bb07 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 16 Sep 2025 12:32:22 -0500 Subject: [PATCH] Improve active state --- app/views/cards/_webhooks.html.erb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/views/cards/_webhooks.html.erb b/app/views/cards/_webhooks.html.erb index a2c36294c..2bdddaa3d 100644 --- a/app/views/cards/_webhooks.html.erb +++ b/app/views/cards/_webhooks.html.erb @@ -1,8 +1,4 @@ -<%= link_to collection_webhooks_path(collection_id: collection), class: "btn tooltip" do %> - <% if collection.webhooks.any? %> - <%= icon_tag "globe" %> - <% else %> - <%= icon_tag "world" %> - <% end %> - Webhooks for <%= collection.name %> +<%= link_to collection_webhooks_path(collection_id: collection), class: ["btn tooltip", {"btn--reversed": collection.webhooks.any?}] do %> + <%= icon_tag "world" %> + Webhooks <% end %>