%nav.navbar.navbar-expand-lg.fixed-top.navbar-dark .container = link_to "Home", "/", class: "navbar-brand" %button.navbar-toggler{type: "button", data: {toggle: "collapse", target: "#navbar-content"}} %span.navbar-toggler-icon .collapse.navbar-collapse{id: "navbar-content"} %ul.navbar-nav.ml-auto - if logged_in? - if superuser? %li.nav-item.dropdown %a.nav-link.dropdown-toggle{href: "#", id: "admin-dropdown", role: "button", data: {toggle: "dropdown"}, "aria-expanded" => "false", "aria-haspopup" => "true"} Admin %span.caret .dropdown-menu{"aria-labelledby" => "admin-dropdown"} %a.dropdown-item{href: admin_users_path} Users - if Rails.env.development? %li.nav-item.dropdown %a.nav-link.dropdown-toggle{href: "#", id: "developer-dropdown", role: "button", data: {toggle: "dropdown"}, "aria-expanded" => "false", "aria-haspopup" => "true"} Developer %span.caret .dropdown-menu{"aria-labelledby" => "developer-dropdown"} %a.dropdown-item{href: admin_users_path} Users %li.nav-item.dropdown %a.nav-link.dropdown-toggle{href: "#", id: "login-dropdown", role: "button", data: {toggle: "dropdown"}, "aria-expanded" => "false", "aria-haspopup" => "true"} Logged in as #{current_user.full_name} %span.caret .dropdown-menu{"aria-labelledby" => "login-dropdown"} - if Rails.env.development? - if superuser? %a.dropdown-item{href: admin_toggle_superuser_path} Disable superuser - else %a.dropdown-item{href: admin_toggle_superuser_path} Enable superuser %a.dropdown-item{href: logout_path} Logout