MorningPeak/app/views/home/user_dashboard.html.slim
Arthur Poulet 7d5986d2e3 Add user dashboard
- add data to the home controller
- create the view users_dashboard in home

Close #17
2015-07-17 06:17:02 +02:00

29 lines
913 B
Plaintext

h1.page-header User Dashboard
.row.placeholders
.col-xs-6.col-sm-3.placeholder
= link_to client_bills_url do
= image_tag "icone_bill.png", alt: "image bills", class: "img-responsive", size: "128x128"
h4 Bills
span.text-muted = "Retard bills: #{@retard_bills}"
br
span.text-muted = "Advanced bills: #{@advanced_bills}"
br
span.text-muted = "Next bills: #{@retard_bills}"
br
span.text-muted = "Old bills: #{@old_bills}"
br
span.text-muted = "Total Bills: #{@bills_count}"
br
.col-xs-6.col-sm-3.placeholder
= link_to client_tickets_url do
= image_tag "icone_ticket.png", alt: "image tickets", class: "img-responsive", size: "128x128"
h4 Tickets
span.text-muted = "Closed tickets: #{@ticket_closed}"
br
span.text-muted = "Opened tickets: #{@ticket_opened}"
br
span.text-muted = "Waiting tickets: #{@ticket_waiting}"
br