app/views/account/platform/applications/_index.html.erb in bullet_train-api-1.2.20 vs app/views/account/platform/applications/_index.html.erb in bullet_train-api-1.2.21
- old
+ new
@@ -2,17 +2,15 @@
<% 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 %>
+<%= render 'account/shared/box' do |box| %>
+ <% box.title t(".contexts.#{context.class.name.underscore}.header") %>
+ <% box.description t(".contexts.#{context.class.name.underscore}.description") %>
- <% p.content_for :table do %>
+ <% box.table do %>
<% if applications.any? %>
<table class="table">
<thead>
<tr>
<th><%= t('.fields.name.heading') %></th>
@@ -44,10 +42,10 @@
</tbody>
</table>
<% end %>
<% end %>
- <% p.content_for :actions do %>
+ <% box.actions do %>
<% unless hide_actions %>
<% if context == team %>
<% if can? :create, Platform::Application.new(team: team) %>
<%= link_to t('.buttons.new'), [:new, :account, team, :platform_application], class: "#{first_button_primary(:platform_application)} new" %>
<% end %>