MorningPeak/app/views/layouts/_navbar.html.slim
Arthur Poulet e060479af6 Fix layout
- Remove older bootstrap gem
- Install new bootstrap (up to date :) )
- Fix and finish layout partials
- Add links for mobiles in the navbar
- Update gemfile

Close #15
2015-07-17 05:50:07 +02:00

23 lines
959 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 "User Dashboard", users_dashboard_url
- if admin_signed_in?
li = link_to "Admin Dashboard", admins_dashboard_url
- if user_signed_in?
li = link_to "#{current_user.name} logout", destroy_user_session_path, method: :delete
- if admin_signed_in?
li = link_to "#{current_admin.email} logout", destroy_admin_session_path, method: :delete
li = link_to "Help", help_url