Sha256: bed42dffaa5e2e882c59a2b711d24feb64fbc4f7d420e9d55b298a7f070d3f49

Contents?: true

Size: 251 Bytes

Versions: 2

Compression:

Stored size: 251 Bytes

Contents

<% state_class = {
    active: 'active',
    canceled: 'error',
    pending_cancellation: 'warning',
    inactive: 'inactive',
}[subscription.state.to_sym] %>

<span class="pill pill-<%= state_class %>">
  <%= subscription.human_state_name %>
</span>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_subscriptions-1.0.0 app/views/spree/admin/subscriptions/_state_pill.html.erb
solidus_subscriptions-1.0.0.rc1 app/views/spree/admin/subscriptions/_state_pill.html.erb