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