<% context ||= @user %> <% collection ||= :integrations_stripe_installations %> <%= render 'account/shared/box' do |box| %> <% box.title t(".contexts.#{context.class.name.underscore}.header") %> <% box.description t(".contexts.#{context.class.name.underscore}.description") %> <% box.body do %> <% if stripe_installations.any? %>
<% stripe_installations.each do |stripe_installation| %>
<% if can? :show, stripe_installation.team %> <%= link_to stripe_installation.team.name, [:account, stripe_installation.team, :integrations, :stripe_installations] %> <% else %> <%= stripe_installation.team.name %> <% end %>
<% if can? :destroy, stripe_installation %> <%= link_to [:account, stripe_installation, return_to: request.path], method: :delete, data: { confirm: t('.buttons.confirmations.destroy_from_user', team_name: stripe_installation.team.label_string) }, class: 'inline-block text-slate-300 hover:text-slate-400 hover:no-underline' do %> <% end %> <% end %>
<% end %>
<% end %> <% end %> <% end %>