Sha256: 3ee63a222fa30f1a47c86c6aff6c85aa70c1c901fa792945839da7f6b0bc188a

Contents?: true

Size: 932 Bytes

Versions: 5

Compression:

Stored size: 932 Bytes

Contents

%h1.effective-heading= @page_title

%p.text-right.effective-actions
  = link_to 'New Subscription', effective_orders.new_subscription_path, class: 'btn btn-primary'

- 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_orders-2.2.4 app/views/effective/subscriptions/index.html.haml
effective_orders-2.2.3 app/views/effective/subscriptions/index.html.haml
effective_orders-2.2.2 app/views/effective/subscriptions/index.html.haml
effective_orders-2.2.1 app/views/effective/subscriptions/index.html.haml
effective_orders-2.2.0 app/views/effective/subscriptions/index.html.haml