<% @group.visible_items.each do |tab| %> <%= a_link tab_path(tab), color: current_one?(tab) ? :primary : :gray, style: current_one?(tab) ? :outline : :text, size: :sm, class: current_one?(tab) ? "z-20 bg-primary-100" : "", title: tab.description, data: { tippy: tab.description.present? ? 'tooltip' : '', selected: current_one?(tab), action: 'click->tabs#changeTab', tabs_tab_name_param: tab.name, tabs_group_id_param: @group.to_param, tabs_resource_name_param: @resource.underscore_name, } do %> <%= tab.name %> <% end %> <% end %>