Sha256: 5b3e447d85f575a67dcfc633497a39031ba44b4472e9d8ee52ab8fe512f9c5c9

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

<% state_class = {
    success: 'active',
    failed: 'error',
    pending: 'inactive',
}[subscription.processing_state.to_sym] %>

<span class="pill pill-<%= state_class %>">
  <%= subscription.class.human_attribute_name("processing_state.#{subscription.processing_state}") %>
</span>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb
solidus_subscriptions-2.0.1 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb
solidus_subscriptions-2.0.0 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb
solidus_subscriptions-1.1.0 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb
solidus_subscriptions-1.0.1 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb
solidus_subscriptions-1.0.0 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb
solidus_subscriptions-1.0.0.rc1 app/views/spree/admin/subscriptions/_processing_state_pill.html.erb