1
0
Fork 0
dokkan-data-rails/app/views/application/_navbar.html.slim

18 lines
684 B
Text
Raw Normal View History

2015-10-06 11:30:39 -04:00
.navbar.navbar-default.navbar-static-top.navbar-custom
2015-09-30 12:59:25 -04:00
.container
2015-10-06 11:30:39 -04:00
.navbar-header
button.navbar-toggle.collapsed type='button' data-toggle='collapse' data-target='.navbar-collapse'
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
= link_to 'DBZDokkan', root_path, class: 'navbar-brand'
.collapse.navbar-collapse
ul.nav.navbar-nav.navbar-right
2015-10-09 08:17:29 -04:00
- if policy(:admin_dashboard).index?
li= nav_link_to 'Administration', admin_root_path
2015-09-30 12:59:25 -04:00
- if logged_in?
2015-10-06 11:30:39 -04:00
li= link_to 'Log Out', logout_path, method: :delete
2015-09-30 12:59:25 -04:00
- else
2015-10-06 13:55:12 -04:00
li= link_to 'Log In', login_path(:reddit)