diff options
author | jessib <jessib@riseup.net> | 2013-08-06 14:21:08 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-08-06 14:21:08 -0700 |
commit | 6f5e2c2cdcbdb9ea4aca71f0bde2a935d979da3f (patch) | |
tree | 501cd66ee60980711983a6860ea00fcaf2dd8639 /billing/app/views/subscriptions/index.html.haml | |
parent | 926ab284677079c8ea02013e8af0647d3a1ce516 (diff) |
Some more tweaks to have billing code work, and allow admins to view but not edit for other users.
Diffstat (limited to 'billing/app/views/subscriptions/index.html.haml')
-rw-r--r-- | billing/app/views/subscriptions/index.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/billing/app/views/subscriptions/index.html.haml b/billing/app/views/subscriptions/index.html.haml index 0e84619..87771e5 100644 --- a/billing/app/views/subscriptions/index.html.haml +++ b/billing/app/views/subscriptions/index.html.haml @@ -1,7 +1,8 @@ +%h2=t :all_subscriptions - active = false - @subscriptions.each do |s| - if s.status == 'Active' - active = true = render :partial => "subscription_details", :locals => {:subscription => s} -- if !active +- if !active and @user == current_user = link_to 'subscribe to plan', new_subscription_path, :class => :btn
\ No newline at end of file |