debshots/app/views/my/_menu.slim

34 lines
1.1 KiB
Text

.menu-centered
ul.menu.icons.icon-top
li class=('active' if action_name=='profile')
= link_to my_profile_path
= icon ('user')
' Myself
li class=('active' if action_name=='screenshots')
= link_to my_screenshots_path
= icon 'camera'
'Screenshots
- if can?(:approve, Screenshot)
li class=('active' if action_name=='moderate_list')
= link_to moderate_list_path
= icon 'check'
'Moderate
- if can? :view, Log
li class=('active' if action_name=='logs')
= link_to logs_path
= icon 'book'
'Logs
// Add link if user has uploaded screenshots
/ - if @current_users_screenshots and @current_users_screenshots.any?
/ li class=('active' if controller_name=='my' and action_name=='uploads')
/ = link_to my_uploads_path
/ = fa_icon 'image 2x', text: 'My uploads'
/ ' My uploads
/ BUG: DELETE method is not used
- if current_user
li
= link_to destroy_user_session_path
= icon 'lock'
'Logout