<% content_for(:page_title, t('.title')) %> <%= render 'spree/admin/shared/subscription_breadcrumbs', subscription: @subscription %> <%= render 'spree/admin/shared/subscription_sidebar', subscription: @subscription %> <%= render 'spree/admin/shared/subscription_tabs', current: :events, subscription: @subscription %> <%= render 'spree/admin/shared/subscription_actions', subscription: @subscription %>
<%= t('spree.admin.subscription_events.index.title') %> <%= paginate @subscription_events, theme: 'solidus_admin' %> <% @subscription_events.each do |event| %> <% end %>
<%= SolidusSubscriptions::SubscriptionEvent.human_attribute_name(:event_type) %> <%= SolidusSubscriptions::SubscriptionEvent.human_attribute_name(:details) %> <%= sort_link(@search, :created_at, SolidusSubscriptions::SubscriptionEvent.human_attribute_name(:created_at)) %>
<%= event.event_type %> <% if event.details.is_a?(Hash) %> <% event.details.each_pair do |key, value| %> <%= key %>: <%= value %>
<% end %> <% else %> <%= event.details %> <% end %>
<%= l event.created_at %>
<%= paginate @subscription_events, theme: 'solidus_admin' %>