summaryrefslogtreecommitdiff
path: root/app/views/layouts/_header.html.haml
blob: a1dd47ae2f2fa180a05ab20d389d0d6b47032514 (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
  .lead
    = @user.email_address