MorningPeak/app/views/layouts/_navbar.html.slim
2015-07-29 17:35:57 +02:00

23 lines
983 B
Plaintext

nav.navbar.navbar-inverse.navbar-fixed-top
.container-fluid
#navbar-title.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
.navbar-brand
= link_to application_title, root_url
#navbar.navbar-collapse.collapse
ul.nav.navbar-nav.navbar-right
- if user_signed_in?
li = link_to t(".user_dashboard"), users_dashboard_url
- if admin_signed_in?
li = link_to t(".admin_dashboard"), admins_dashboard_url
- if user_signed_in?
li = link_to "#{current_user.name} #{t '.logout'}", destroy_user_session_path, method: :delete
- if admin_signed_in?
li = link_to "#{current_admin.email} #{t '.logout'}", destroy_admin_session_path, method: :delete
li = link_to "Help", help_url