<%= render 'account/shared/page' do |page| %> <% page.title t('.section').html_safe %> <% page.body do %> <%= render 'account/shared/box', divider: true do |box| %> <% box.title t('.header') %> <% box.description do %> <%= t('.description').html_safe %> <%= t('.manage_description') if can? :manage, @delivery %> <% end %> <% box.body do %> <% with_attribute_settings object: @delivery, strategy: :label do %> <% with_attribute_settings object: @delivery.event do %> <%= render 'shared/attributes/code', attribute: :uuid %> <%= render 'shared/attributes/code', attribute: :event_type_name %> <%= render 'shared/attributes/attribute', attribute: :payload do %>
<%= JSON.pretty_generate(@delivery.event.payload) %>
<% end %> <% end %> <%= render 'shared/attributes/attempt', attribute: :status, success_method: :delivered?, attempting_method: :still_attempting?, failure_method: :failed? %> <%= render 'shared/attributes/code', attribute: :endpoint_url %> <%= render 'shared/attributes/date_and_time', attribute: :delivered_at %> <%# 🚅 super scaffolding will insert new fields above this line. %> <% end %> <% end %> <% box.actions do %> <%= link_to t('.buttons.edit'), [:edit, :account, @delivery], class: first_button_primary if can? :edit, @delivery %> <%= button_to t('.buttons.destroy'), [:account, @delivery], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@delivery)) } if can? :destroy, @delivery %> <%= link_to t('global.buttons.back'), [:account, @endpoint, :deliveries], class: first_button_primary %> <% end %> <% end %> <%= render 'account/webhooks/outgoing/delivery_attempts/index', delivery_attempts: @delivery.delivery_attempts, hide_back: true %> <%# 🚅 super scaffolding will insert new children above this line. %> <% end %> <% end %>