2016-02-17 15:09:49 +01:00
|
|
|
.pure-u-1
|
2017-01-11 16:14:21 +01:00
|
|
|
.menu
|
|
|
|
= link_to 'Tab', root_path, class: 'menu-heading menu-item'
|
|
|
|
.menu-list
|
|
|
|
= link_to 'Transactions', current_user, class: 'menu-item'
|
|
|
|
= link_to user_requests_path(current_user), class: 'menu-item' do
|
|
|
|
Requests
|
2017-01-14 16:22:44 +01:00
|
|
|
%span.badge= current_user.incoming_requests.open.size
|
2017-01-11 16:14:21 +01:00
|
|
|
= link_to user_notifications_path(current_user), class: 'menu-item' do
|
|
|
|
Notifications
|
2017-01-14 16:22:44 +01:00
|
|
|
%span.badge= current_user.notifications.unread.size
|
2017-01-11 16:14:21 +01:00
|
|
|
- if current_user.penning
|
|
|
|
= link_to 'Zeus', User.zeus, class: 'menu-item'
|
|
|
|
= link_to user_requests_path(User.zeus), class: 'menu-item' do
|
|
|
|
Zeus Requests
|
|
|
|
%span.badge= User.zeus.incoming_requests.size
|
|
|
|
= link_to user_notifications_path(User.zeus), class: 'menu-item' do
|
|
|
|
Zeus Notifications
|
|
|
|
%span.badge= User.zeus.notifications.size
|
2017-01-16 21:40:09 +01:00
|
|
|
.menu-list.menu-right
|
2017-01-16 22:20:21 +01:00
|
|
|
%span.menu-item= euro_from_cents current_user.balance
|
|
|
|
= link_to 'Sign out', sign_out_path, method: :delete, class: 'menu-item menu-item-signout'
|