summaryrefslogtreecommitdiff
path: root/billing/app/views
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-09-18 00:27:15 -0700
committerazul <azul@riseup.net>2013-09-18 00:27:15 -0700
commit22e6f781caec701a4d041e0ac183df4c955e89c2 (patch)
treed07f7d83f292951d78a06d81ee06eac81aae5206 /billing/app/views
parentb7ab1a00f7a8ac15d364a6597701f5fcc891ca78 (diff)
parent7262c7c1d37dd57c102bb41de3a15aa15f720056 (diff)
Merge pull request #83 from jessib/feature/billing_admin_cancel_subscriptions
Feature/billing admin cancel subscriptions
Diffstat (limited to 'billing/app/views')
-rw-r--r--billing/app/views/subscriptions/show.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/billing/app/views/subscriptions/show.html.haml b/billing/app/views/subscriptions/show.html.haml
index ebb7e0d..39f4d1a 100644
--- a/billing/app/views/subscriptions/show.html.haml
+++ b/billing/app/views/subscriptions/show.html.haml
@@ -3,5 +3,4 @@
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?
+= 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?