/ foundation nav.top-bar data-topbar=true
  ul.title-area
    li.name= link_to application_name, main_app.root_path
    li.toggle-topbar.menu-icon: a href="#": span Menu
  .top-bar-section= render 'layouts/navigation_links'
.ui.inverted.menu.fixed
  /.ui.container
  = link_to application_name, main_app.root_path, class: 'header item'
  - if current_user.present?
    = link_to 'App', '/panda/app/', class: 'item'
    = link_to SourceFile.model_name.human_plural, main_app.source_files_path, class: ['item', active_class('source_files')]
    /= link-to 'work-order' class='item'
      span= t 'work_order.title'
    /= link-to 'wholesale-list' class='item'
      span= t 'wholesale_list.title'
    .ui.dropdown.item
      span Adapters
      i.dropdown.icon
      .menu
        - Panda.adapters.each do |adapter|
          = link_to adapter.title, adapter.root_path, class: 'item'

  .right.menu
    - if current_user.present?
      .ui.dropdown.item
        span= current_user.nickname
        i.dropdown.icon
        .menu
          /= link-to 'user.profile' class='item'
            i.user.icon
            span.text= t 'user.profile'
          /= link-to 'manual' class='item'
            i.book.icon
            span.text= t 'manual.title'
          = link_to main_app.destroy_user_session_path, method: :delete, class: 'item'
            i.toggle.right.icon
            span.text= t 'user.sign_out'
    - else
      = link_to 'Login', main_app.new_user_session_path, class: 'item'

