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