= nav_bar do = brand(app_name, url: root_path, with_environment: true) = nav_bar_links do - if logged_in? - if admin? = nav_dropdown("Admin") do = dropdown_item(announcements_text, admin_announcements_path) = dropdown_item(icon('user', "Users"), ucb_rails_admin_users_path) = render partial: 'layouts/developer' - else %li = link_to('Login', login_path) - if logged_in? = nav_bar_links(pull: 'right') do = nav_dropdown("Logged in as #{current_user.first_last_name}") do = dropdown_item(announcements_text, hidden_announcements_path) = dropdown_divider = dropdown_item(icon('remove', 'Logout'), logout_path)