summaryrefslogtreecommitdiff
path: root/app/views/layouts/_header.html.haml
blob: e827f60c70a65147bff8790d9b17c416758b8b0c (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", cascade: true), tickets_path
    %li
      = link_to t(:logout), logout_path, :method => :delete
- if @user && @show_navigation
  .lead
    = @user.email_address