Sha256: ef95659faeff396046acbf67f8f6463d5ae66be7a44fb6df9e05e11faefad832
Contents?: true
Size: 1.91 KB
Versions: 4
Compression:
Stored size: 1.91 KB
Contents
<%= content_tag :tr, class: cycle('odd', 'even') do %> <%= content_tag :td, l(subscription.created_at.to_date), class: 'align-center' %> <%= content_tag :td, class: 'align-center' do %> <%= link_to subscription.user.email, admin_user_path(subscription.user) %> <% end %> <%= content_tag :td, class: 'align-center' do %> <%= subscription.actionable_date ? l(subscription.actionable_date) : '-' %> <% end %> <%= content_tag :td, class: 'align-center' do %> <%= subscription.interval.inspect %> <% end %> <%= content_tag :td, class: 'align-center' do %> <%= content_tag :span, subscription.human_state_name, class: "state #{ subscription.state }" %> <% end %> <%= content_tag :td, class: 'align-center' do %> <%= content_tag :span, class: "state #{ subscription.processing_state }" do %> <%= subscription.class.human_attribute_name("processing_state.#{ subscription.processing_state }") %> <% end %> <% end %> <td class="actions align-center"> <% if subscription.state_events.include?(:cancel) %> <%= link_to_with_icon( :stop, t('.cancel'), spree.cancel_admin_subscription_path(subscription), no_text: true, method: :delete, data: { confirm: t('.cancel_alert') } ) %> <% end %> <% if subscription.state_events.include?(:activate) %> <%= link_to_with_icon( :play, t('.activate'), spree.activate_admin_subscription_path(subscription), no_text: true, method: :post ) %> <% end %> <% if subscription.active? %> <%= link_to_with_icon( :'fast-forward', t('.skip'), spree.skip_admin_subscription_path(subscription), no_text: true, method: :post ) %> <% end %> <%= link_to_edit(subscription, no_text: true) %> </td> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems