Add number of requests and notifications in header

This commit is contained in:
benji 2017-01-10 17:22:11 +01:00
parent 51460a97b7
commit 11024261d9

View file

@ -18,9 +18,9 @@
%li.pure-menu-item
=link_to "Zeus", User.zeus, class: "pure-menu-link"
%li.pure-menu-item
= link_to 'Requests', user_requests_path(current_user), class: 'pure-menu-link'
= link_to "Requests (#{current_user.incoming_requests.size})", user_requests_path(current_user), class: 'pure-menu-link'
%li.pure-menu-item
= link_to 'Notifications', user_notifications_path(current_user), class: 'pure-menu-link'
= link_to "Notifications (#{current_user.notifications.size})", user_notifications_path(current_user), class: 'pure-menu-link'
.pure-u-1
= render 'partials/flash'
= yield