Sha256: 21e84bed4750feede5c76ec78ddfeda230f036faa0ca1ce0a156299570bf8de4

Contents?: true

Size: 871 Bytes

Versions: 20

Compression:

Stored size: 871 Bytes

Contents

%h2 My Subscriptions

- if @subscriptions.present?
  %p You have the following subscriptions:
  %ul
    - @subscriptions.each do |subscription|
      %li
        = subscription.title.html_safe
        = '('
        = link_to 'details', effective_orders.subscription_path(subscription.stripe_plan_id)
        = '-'
        = link_to 'unsubscribe', effective_orders.subscription_path(subscription.stripe_plan_id), :data => {:method => :delete, :confirm => 'This will cancel your subscription. Are you sure? This cannot be undone.'}
        = ')'

  - if @active_stripe_subscription.present?
    %p Your current subscription will be renewed automatically at #{ Time.zone.at(@active_stripe_subscription.current_period_end).strftime('%d-%b-%Y %H:%M') }.

- else
  %p You have no subscriptions

%p.text-right= link_to 'New Subscription', effective_orders.new_subscription_path

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_orders-1.5.2 app/views/effective/subscriptions/index.html.haml
effective_orders-1.5.1 app/views/effective/subscriptions/index.html.haml
effective_orders-1.5.0 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.8 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.7 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.6 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.5 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.4 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.3 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.2 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.1 app/views/effective/subscriptions/index.html.haml
effective_orders-1.4.0 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.13 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.12 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.11 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.10 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.9 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.8 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.7 app/views/effective/subscriptions/index.html.haml
effective_orders-1.3.6 app/views/effective/subscriptions/index.html.haml