Add number of requests and notifications in header
This commit is contained in:
parent
51460a97b7
commit
11024261d9
1 changed files with 2 additions and 2 deletions
|
@ -18,9 +18,9 @@
|
||||||
%li.pure-menu-item
|
%li.pure-menu-item
|
||||||
=link_to "Zeus", User.zeus, class: "pure-menu-link"
|
=link_to "Zeus", User.zeus, class: "pure-menu-link"
|
||||||
%li.pure-menu-item
|
%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
|
%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
|
.pure-u-1
|
||||||
= render 'partials/flash'
|
= render 'partials/flash'
|
||||||
= yield
|
= yield
|
||||||
|
|
Loading…
Reference in a new issue