app/views/account/webhooks/outgoing/endpoints/show.html.erb in bullet_train-outgoing_webhooks-1.2.20 vs app/views/account/webhooks/outgoing/endpoints/show.html.erb in bullet_train-outgoing_webhooks-1.2.21

- old
+ new

@@ -1,16 +1,16 @@ -<%= render 'account/shared/page' do |p| %> - <% p.content_for :title, t('.section') %> - <% p.content_for :body do %> - <%= render 'account/shared/box', divider: true do |p| %> - <% p.content_for :title, t('.header') %> - <% p.content_for :description do %> +<%= render 'account/shared/page' do |page| %> + <% page.title t('.section') %> + <% page.body do %> + <%= render 'account/shared/box', divider: true do |box| %> + <% box.title t('.header') %> + <% box.description do %> <%= t('.description') %> <%= t('.manage_description') if can? :manage, @endpoint %> <% end %> - <% p.content_for :body do %> + <% box.body do %> <% with_attribute_settings object: @endpoint, strategy: :label do %> <%= render 'shared/attributes/text', attribute: :name %> <%= render 'shared/attributes/code', attribute: :url %> <% # TODO We should make the `has_many` attribute partial configurable enough to handle this use case. %> @@ -30,10 +30,10 @@ <%= render 'shared/attributes/belongs_to', attribute: :scaffolding_absolutely_abstract_creative_concept %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %> <% end %> - <% p.content_for :actions do %> + <% box.actions do %> <%= link_to t('.buttons.edit'), [:edit, :account, @endpoint], class: first_button_primary if can? :edit, @endpoint %> <%= button_to t('.buttons.destroy'), [:account, @endpoint], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@endpoint)) } if can? :destroy, @endpoint %> <%= link_to t('global.buttons.back'), [:account, @parent, :webhooks_outgoing_endpoints], class: first_button_primary %> <% end %> <% end %>