From e4ade0f1b153553dcfb993674fd8b4ecf87121e4 Mon Sep 17 00:00:00 2001 From: jessib Date: Mon, 15 Apr 2013 12:45:50 -0700 Subject: Allow subscriptions to be canceled. --- billing/app/views/subscriptions/show.html.haml | 1 + 1 file changed, 1 insertion(+) (limited to 'billing/app/views/subscriptions/show.html.haml') diff --git a/billing/app/views/subscriptions/show.html.haml b/billing/app/views/subscriptions/show.html.haml index 4ee015c..bc85fd9 100644 --- a/billing/app/views/subscriptions/show.html.haml +++ b/billing/app/views/subscriptions/show.html.haml @@ -1 +1,2 @@ = render :partial => "subscription_details", :locals => {:subscription => @subscription} += link_to t(:Cancel), subscription_path, :confirm => 'Are you sure?', :method => :delete, :class => 'btn btn-danger' if @subscription.status == 'Active' # permission check or should that just be on show? \ No newline at end of file -- cgit v1.2.3