%nav.navbar.navbar-inverse.navbar-fixed-top .container #navbar.collapse.navbar-collapse %ul.nav.navbar-nav.navbar-left %li = link_to "Home", "/" %ul.nav.navbar-nav.navbar-right - if logged_in? - if superuser? %li.dropdown %a.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"} Admin %span.caret %ul.dropdown-menu %li %a{:href => admin_users_path} Users - if Rails.env.development? %li.dropdown %a.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"} Developer %span.caret %ul.dropdown-menu %li %a{:href => admin_users_path} Users %li.dropdown %a.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"} Logged in as #{current_user.full_name} %span.caret %ul.dropdown-menu - if Rails.env.development? - if superuser? %li %a{:href => admin_toggle_superuser_path} Disable superuser - else %li %a{:href => admin_toggle_superuser_path} Enable superuser %li %a{:href => logout_path} Logout - else %li = link_to('Login', login_path)