summaryrefslogtreecommitdiff
path: root/app/views/layouts/_navigation.html.haml
blob: b468fe8d42a33a5b811390edbf8ad8d786947333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%ul.nav.sidenav
  = link_to_navigation :overview, @user,
    active: (controller?(:users) && action?(:show))
  = link_to_navigation :account_settings, edit_user_path(@user),
    active: (controller?(:users) && !action?(:show))
  - # will want link for identity settings
  = link_to_navigation ".tickets", auto_tickets_path,
    active: controller?(:tickets)
  - if APP_CONFIG[:billing]
    = link_to_navigation :donations, new_payment_path,
      active: (controller?(:donations) and action?(:new))
    = link_to_navigation :subscriptions, billing_top_link(@braintree_customer_id),
      active: controller?(:subscriptions)
  - unless admin?
    = link_to_navigation :logout, logout_path, method: :delete