Move "my screenshots" to "My" menu

This commit is contained in:
Christoph Haas 2018-08-10 16:22:10 +02:00
parent 6c1b1130d7
commit 1e4129b58d
2 changed files with 7 additions and 10 deletions

View file

@ -3,9 +3,13 @@
li class=('active' if action_name=='profile')
= link_to my_profile_path
= fa_icon 'user-o 2x', text: 'Myself'
li class=('active' if action_name=='uploads')
a href='#'
= fa_icon 'image 2x', text: 'My uploads'
// 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
li
= link_to destroy_user_session_path
= fa_icon 'lock 2x', text: 'Logout'