tab/app/views/application/_menu.html.haml

23 lines
1 KiB
Text
Raw Normal View History

2016-02-17 15:09:49 +01:00
.pure-u-1
.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
= 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
- 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
.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'