summaryrefslogtreecommitdiff
path: root/billing/app/views/subscriptions/index.html.haml
blob: 0e84619e896bfda4f0043521b9d99d7b845a3f4c (plain)
1
2
3
4
5
6
7
- active = false
- @subscriptions.each do |s|
  - if s.status == 'Active'
    - active = true
  = render :partial => "subscription_details", :locals => {:subscription => s}
- if !active
  = link_to 'subscribe to plan', new_subscription_path, :class => :btn