MorningPeak/app/views/layouts/_sidebar.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

31 lines
825 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.col-sm-3.col-md-2.sidebar
/ User side
- if user_signed_in?
ul.nav.nav-sidebar
li.active
= link_to users_dashboard_url do
| User
span.sr-only (current)
li = link_to client_bills_url do
| bills due 
.badge = user_bills_count_due
li = link_to client_tickets_url do
| tickets 
.badge = user_tickets_unview_count
/ Admin side
- if admin_signed_in?
- if user_signed_in?
br
ul.nav.nav-sidebar
li.active
= link_to admins_dashboard_url do
| Admin
span.sr-only (current)
li = link_to "clients", clients_url
li = link_to "contacts", contacts_url
li = link_to "bills", bills_url
li = link_to tickets_url do
| tickets 
.badge = admin_tickets_unview_count