Sha256: 785d3a61d5f0c561e54f5fbf6014c88ad1d7eeb8ba0b147acdbdb1051eedd2ed

Contents?: true

Size: 1.42 KB

Versions: 39

Compression:

Stored size: 1.42 KB

Contents

%h2.effective-orders-page-title
  = @plan.name
  Subscription
  details

%p= stripe_plan_description(@plan)

%table.table
  %tbody
    %tr
      %th Started
      %td= Time.zone.at(@stripe_subscription.start).strftime("%d-%b-%Y")
    - if @stripe_subscription.discount.present?
      %tr
        %th Coupon
        %td= stripe_coupon_description(@stripe_subscription.discount.coupon)
    %tr
      %th Status
      %td= @stripe_subscription.status
    %tr
      %th Current Period Start
      %td= Time.zone.at(@stripe_subscription.current_period_start).strftime("%d-%b-%Y")
    %tr
      %th Current Period End
      %td= Time.zone.at(@stripe_subscription.current_period_end).strftime("%d-%b-%Y")

%h3= "#{@plan.interval.chomp('ly')}ly Invoices"

%table.table
  %thead
    %tr
      %th Date
      %th Id
      %th Period
      %th Charge
  %tbody
    - @invoices.each do |invoice|
      %tr
        %td= Time.zone.at(invoice.date).strftime("%d-%b-%Y")
        %td= invoice.id
        %td
          = Time.zone.at(invoice.lines.first.period.start).strftime("%d-%b-%Y")
          to
          = Time.zone.at(invoice.lines.first.period.end).strftime("%d-%b-%Y")
        %td= price_to_currency(invoice.total)

%h3 Cancel Subscription

= link_to 'Unsubscribe', effective_orders.subscription_path(@plan.id), :data => {:method => :delete, :confirm => 'This will cancel your subscription. Are you sure? This cannot be undone.', :disable_with => 'Unsubscribing...'}

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
effective_orders-2.1.17 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.16 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.15 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.14 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.13 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.12 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.10 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.9 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.8 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.7 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.6 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.5 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.4 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.3 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.2 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.1 app/views/effective/subscriptions/show.html.haml
effective_orders-2.1.0 app/views/effective/subscriptions/show.html.haml
effective_orders-2.0.1 app/views/effective/subscriptions/show.html.haml
effective_orders-2.0.0 app/views/effective/subscriptions/show.html.haml
effective_orders-1.8.1 app/views/effective/subscriptions/show.html.haml