summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/index.html.haml
blob: 87771e574c19eef3b18a68546a9d1da2c7b10b71 (plain)
1
2
3
4
5
6
7
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 and @user == current_user
  = link_to 'subscribe to plan', new_subscription_path, :class => :btn