summaryrefslogtreecommitdiff
path: root/app/views/layouts/_header.html.haml
blob: 157f1df68dbad3ce972a212ac00289d8abd0a8e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- if admin?
  %ul.nav.nav-tabs
    = # this navigation isn't quite right. also, we will want to active for an identity controller once it is added.
    %li{:class => ("active" if controller?('users', 'overviews') || params[:user_id])}
      = link_to t(:users), users_path
    %li{:class => ("active" if controller?('tickets') && !params[:user_id])}
      = link_to t(:tickets), tickets_path
    %li
      = link_to t(:logout), logout_path, :method => :delete
- if @user && @show_navigation
  .user_heading
    = @user.email_address