summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/subscriptions/index.html.haml
blob: 3d4e8fdc46acda930ad181c9bd84fdbd9f7a54ed (plain)
1
2
3
4
5
6
7
8
%h2=t :all_subscriptions
- pending_active_pastdue = false
- @subscriptions.each do |s|
  - if ['Pending', 'Active','Past Due'].include? s.status
    - pending_active_pastdue = true
  = render :partial => "subscription_details", :locals => {:subscription => s}
- if !pending_active_pastdue and @user == current_user
  = link_to 'subscribe to plan', new_subscription_path, :class => :btn