% team = @team || @team %> <% context ||= team %> <% collection ||= :platform_applications %> <% 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 applications.any? %>
<%= t('.fields.name.heading') %> | <%# 🚅 super scaffolding will insert new field headers above this line. %><%= t('.fields.created_at.heading') %> | |
---|---|---|
<%= render 'shared/attributes/text', attribute: :name, url: [:account, application] %> | <%# 🚅 super scaffolding will insert new fields above this line. %><%= display_date_and_time(application.created_at) %> | <% unless hide_actions %> <% if can? :edit, application %> <%= link_to t('.buttons.shorthand.edit'), [:edit, :account, application], class: 'button-secondary button-smaller' %> <% end %> <% if can? :destroy, application %> <%= button_to t('.buttons.shorthand.destroy'), [:account, application], method: :delete, data: { confirm: t('.buttons.confirmations.destroy', model_locales(application)) }, class: 'button-secondary button-smaller' %> <% end %> <% end %> |