Improve active state

This commit is contained in:
Jason Zimdars
2025-09-16 12:32:22 -05:00
committed by Stanko K.R.
parent 784d6cf690
commit 2e9273c6ab
+3 -7
View File
@@ -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 %>
<span class="for-screen-reader">Webhooks for <%= collection.name %></span>
<%= link_to collection_webhooks_path(collection_id: collection), class: ["btn tooltip", {"btn--reversed": collection.webhooks.any?}] do %>
<%= icon_tag "world" %>
<span class="for-screen-reader">Webhooks</span>
<% end %>