%div{ style: 'margin-top:30px;margin-bottom: 30px' }
  = link_to dashboard_path do
    = image_tag 'pats-logo-transparent.png', alt: '', class: 'img-responsive'
%ul.left-menu
  %li.left-menu-header Dashboard
  %li
    = link_to 'Home', dashboard_path, class: (current_page?(dashboard_path) ? 'active' : nil)
  %li
    = link_to 'Directory', directory_path, class: (current_page?(directory_path) ? 'active' : nil)
  %li.left-menu-header Documents
  - Category.current.where(archived: false).each do |category|
    - if category.documents.where(archived: false).present?
      %li= link_to category.name, internal_category_path(category.slug)
  - if current_user.admin?
    %li.left-menu-header Admin
    %li= link_to 'Dashboard', admin_root_path
  - if current_user.editor?
    %li.left-menu-header Editor
    %li= link_to 'Dashboard', editor_path

%div{ style: 'margin-top:30px;margin-bottom: 30px' }
  = link_to dashboard_path do
    = image_tag 'pats-logo-transparent.png', alt: '', class: 'img-responsive'
%ul.left-menu
  %li.left-menu-header Dashboard
  %li
    = link_to 'Home', dashboard_path, class: (current_page?(dashboard_path) ? 'active' : nil)
  %li
    = link_to 'Directory', directory_path, class: (current_page?(directory_path) ? 'active' : nil)
  %li.left-menu-header Documents
  - Category.current.where(archived: false).each do |category|
    - if category.documents.where(archived: false).present?
      %li
        = link_to category.name, internal_category_path(category.slug), class: (current_page?(internal_category_path(category.slug)) ? 'active' : nil)
  - if current_user.admin?
    %li.left-menu-header Admin
    %li= link_to 'Dashboard', admin_root_path
  - if current_user.editor?
    %li.left-menu-header Editor
    %li= link_to 'Dashboard', editor_path

Set active class for category menu items
Set active class for category menu items
