% team = @team || @team %> <% context ||= team %> <% collection ||= :webhooks_outgoing_endpoints %> <% hide_actions ||= false %> <% hide_back ||= false %> <%= render 'account/shared/box' do |p| %> <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %> <% p.content_for :description do %> <%= t(".contexts.#{context.class.name.underscore}.description") %> <% end %> <% p.content_for :table do %> <% if endpoints.any? %>
<%= t('.fields.name.heading') %> | <%= t('.fields.url.heading') %> | <%# 🚅 super scaffolding will insert new field headers above this line. %>|
---|---|---|
<%= render 'shared/attributes/text', attribute: :name, url: [:account, endpoint] %> | <%= render 'shared/attributes/code', attribute: :url %> | <%# 🚅 super scaffolding will insert new fields above this line. %><% unless hide_actions %> <% if can? :edit, endpoint %> <%= link_to t('.buttons.shorthand.edit'), [:edit, :account, endpoint], class: 'button-secondary button-smaller' %> <% end %> <% if can? :destroy, endpoint %> <%= button_to t('.buttons.shorthand.destroy'), [:account, endpoint], method: :delete, data: { confirm: t('.buttons.confirmations.destroy', model_locales(endpoint)) }, class: 'button-secondary button-smaller' %> <% end %> <% end %> |