summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/show.html.haml
blob: b258e472dd85ad33a1ee4162405d24e658f39548 (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 # permission check or should that just be on show? # should you be able to cancel pending subscription?