Retrospring/app/views/layouts/_header.html.haml

26 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-08-01 06:27:08 -07:00
%nav.navbar.navbar-default.navbar-fixed-top{role: "navigation"}
.container
.navbar-header
%button.navbar-toggle{"data-target" => "#j2-main-navbar-collapse", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.navbar-brand{href: "/"} justask2
#j2-main-navbar-collapse.collapse.navbar-collapse
%ul.nav.navbar-nav
= nav_entry "Front", "/"
%ul.nav.navbar-nav.navbar-right
- if user_signed_in?
%li.dropdown
%a.dropdown-toggle{href: "#", "data-toggle" => "dropdown"}
2014-08-01 08:40:48 -07:00
= current_user.screen_name
2014-08-01 06:27:08 -07:00
%b.caret
%ul.dropdown-menu
%li= link_to "Profile", edit_user_registration_path
%li= link_to "Settings", "#"
%li.divider
%li= link_to "Logout", destroy_user_session_path, method: :delete
- else
= nav_entry "Sign in", new_user_session_path
= nav_entry "Sign up", new_user_registration_path