blob: ebb7e0d0a5ce24d7f87d9beae59b9fa6dd3e6e9c (
plain)
1
2
3
4
5
6
7
|
%h1
- if @subscription.status == 'Active'
Current
Subscription
= render :partial => "subscription_details", :locals => {:subscription => @subscription}
- if @user == current_user
= link_to t(:cancel_subscription), subscription_path(@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?
|