summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/show.html.haml
blob: f4d644a743e36b6841b8d5e54c5ee2369f35a12e (plain)
1
2
3
4
5
6
%h1
  - if @subscription.status == 'Active'
    Current
  Subscription
= render :partial => "subscription_details",  :locals => {:subscription => @subscription}
= link_to t(:cancel_subscription), user_subscription_path(@user, @subscription.id),  :confirm => t(:are_you_sure), :method => :delete, :class => 'btn btn-danger' if ['Active', 'Pending'].include? @subscription.status or admin? # permission check or should that just be on show? # should you be able to cancel pending subscription?