Sha256: 15682da2be8ef61410e2e1d0bbfce37b924dd2591505516be96a583944003823

Contents?: true

Size: 1.36 KB

Versions: 20

Compression:

Stored size: 1.36 KB

Contents

%h2
  = @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.'}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
effective_orders-1.3.1 app/views/effective/subscriptions/show.html.haml
effective_orders-1.3.0 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.13 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.12 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.11 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.10 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.9 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.8 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.7 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.6 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.5 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.4 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.3 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.2 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.1 app/views/effective/subscriptions/show.html.haml
effective_orders-1.2.0 app/views/effective/subscriptions/show.html.haml
effective_orders-1.1.2 app/views/effective/subscriptions/show.html.haml
effective_orders-1.1.1 app/views/effective/subscriptions/show.html.haml
effective_orders-1.1.0 app/views/effective/subscriptions/show.html.haml
effective_orders-1.0.0 app/views/effective/subscriptions/show.html.haml