% content_for :page_title do %> <%= Spree.t('admin.webhooks_subscribers.webhooks_subscribers') %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t('admin.webhooks_subscribers.new_webhooks_subscriber'), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_webhooks_subscriber_link' %> <% end if can?(:create, Spree::Webhooks::Subscriber) %> <% if @webhooks_subscribers.any? %>
<%= Spree.t('admin.url') %> | <% if defined?(Spree::Vendor) && can?(:manage, Spree::Vendor) && !current_spree_vendor %><%= Spree.t(:vendor) %> | <% end %><%= Spree.t('admin.active') %> | <%= Spree.t('admin.webhooks_subscribers.subscriptions') %> | <%= Spree.t('admin.webhooks_subscribers.time_of_last_event') %> | <%= Spree.t('admin.webhooks_subscribers.all_events') %> | |
---|---|---|---|---|---|---|
<%= webhooks_subscriber.url %> |
<% if defined?(Spree::Vendor) && can?(:manage, Spree::Vendor) && !current_spree_vendor %>
<%= link_to webhooks_subscriber.vendor.name, spree.admin_vendor_path(webhooks_subscriber.vendor) if webhooks_subscriber.vendor.present? %> | <% end %><%= active_badge(webhooks_subscriber.active) %> | <%= webhooks_subscriber.subscriptions&.sort&.join(', ') %> | <%= webhooks_subscriber.events.order(:created_at).last&.created_at %> | <%= link_to Spree.t(:view), admin_webhooks_subscriber_path(webhooks_subscriber) %> | <%= link_to_edit(webhooks_subscriber, no_text: true) if can? :edit, webhooks_subscriber %> <%= link_to_delete(webhooks_subscriber, no_text: true) if can? :delete, webhooks_subscriber %> |