-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added BTS header navigation partial, converted to .slim
- Loading branch information
1 parent
2efcaf5
commit d63b1a9
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
nav.navbar.navbar-default | ||
.container-fluid | ||
.navbar-header | ||
button.navbar-toggle.collapsed type='button' data-toggle='collapse' data-target='#navbar' aria-expanded='false' aria-controls='navbar' | ||
span.sr-only Toggle navigation | ||
span.icon-bar | ||
span.icon-bar | ||
span.icon-bar | ||
= link_to 'Rails 5 Group Chat', root_path, class: 'navbar-brand' | ||
|
||
#navbar.collapse.navbar-collapse | ||
ul.nav.navbar-nav.navbar-right | ||
- if user_signed_in? | ||
li.dropdown | ||
= link_to '/', class: 'dropdown-toggle', :'data-toggle' => 'dropdown', :'role' => 'button', :'aria-haspopup' => 'true', :'aria-expanded' => 'false' do | ||
= current_user.username | ||
span.caret | ||
ul.dropdown-menu | ||
li = link_to 'Settings', edit_user_registration_path | ||
li.divider role='separator' | ||
li = link_to 'Logout', destroy_user_session_path, method: :delete | ||
- else | ||
li = link_to 'Sign Up', new_user_registration_path | ||
li = link_to 'Login', new_user_session_path |