blob: 39f4d1ab58b3cddaba5198316b761ad52f5d649a (
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 @subscription.status == 'Active' # permission check or should that just be on show?
|