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

22 lines
973 B
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
= link_to 'Sign out', sign_out_path, method: :delete, class: 'menu-item'