2014-11-28 11:23:17 -08:00
|
|
|
%nav.navbar.navbar-inverse.navbar-fixed-top{role: "navigation"}
|
2014-12-06 08:08:10 -08:00
|
|
|
.container{class: ios_web_app? ? "ios-web-app" : ''}
|
2014-11-02 04:47:35 -08:00
|
|
|
.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
|
2014-11-03 04:03:24 -08:00
|
|
|
%a.navbar-brand{href: "/"}= APP_CONFIG['site_name']
|
2014-11-02 04:47:35 -08:00
|
|
|
#j2-main-navbar-collapse.collapse.navbar-collapse
|
2014-11-10 14:46:51 -08:00
|
|
|
- if user_signed_in?
|
2014-11-10 21:41:04 -08:00
|
|
|
%ul.nav.navbar-nav
|
|
|
|
= nav_entry "Timeline", root_path
|
2014-11-10 14:46:51 -08:00
|
|
|
%ul.nav.navbar-nav
|
2014-11-29 17:06:15 -08:00
|
|
|
= nav_entry "Inbox", "/inbox", badge: inbox_count
|
2014-11-10 14:46:51 -08:00
|
|
|
%ul.nav.navbar-nav.navbar-right
|
2014-11-02 04:47:35 -08:00
|
|
|
%li.dropdown
|
|
|
|
%a.dropdown-toggle{href: "#", "data-toggle" => "dropdown"}
|
|
|
|
= current_user.screen_name
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
2014-11-10 04:04:10 -08:00
|
|
|
%li= link_to "View profile", show_user_profile_path(current_user.screen_name)
|
2014-11-02 08:58:37 -08:00
|
|
|
%li= link_to "Settings", edit_user_registration_path
|
2014-11-02 04:47:35 -08:00
|
|
|
%li.divider
|
|
|
|
%li= link_to "Logout", destroy_user_session_path, method: :delete
|
2014-11-10 14:46:51 -08:00
|
|
|
- else
|
|
|
|
%ul.nav.navbar-nav.navbar-right
|
2014-11-02 04:47:35 -08:00
|
|
|
= nav_entry "Sign in", new_user_session_path
|
2014-11-03 04:03:24 -08:00
|
|
|
= nav_entry "Sign up", new_user_registration_path
|