Move "my screenshots" to "My" menu
This commit is contained in:
parent
6c1b1130d7
commit
1e4129b58d
2 changed files with 7 additions and 10 deletions
|
|
@ -32,13 +32,6 @@ nav.top-bar
|
||||||
//a href="#" Ubuntu
|
//a href="#" Ubuntu
|
||||||
li.menu-text class=('active' if controller_name=='welcome' and action_name=='about')
|
li.menu-text class=('active' if controller_name=='welcome' and action_name=='about')
|
||||||
a href="/about" About/Privacy
|
a href="/about" About/Privacy
|
||||||
// Add link if user has uploaded screenshots
|
|
||||||
- if @current_users_screenshots and @current_users_screenshots.any?
|
|
||||||
li.menu-text class=('active' if controller_name=='my' and action_name=='uploads')
|
|
||||||
= link_to my_uploads_path
|
|
||||||
' My uploads
|
|
||||||
span.badge.secondary
|
|
||||||
= @current_users_screenshots.count
|
|
||||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||||
- if user_signed_in? and current_user.is_admin?
|
- if user_signed_in? and current_user.is_admin?
|
||||||
li.menu-text
|
li.menu-text
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,13 @@
|
||||||
li class=('active' if action_name=='profile')
|
li class=('active' if action_name=='profile')
|
||||||
= link_to my_profile_path
|
= link_to my_profile_path
|
||||||
= fa_icon 'user-o 2x', text: 'Myself'
|
= fa_icon 'user-o 2x', text: 'Myself'
|
||||||
li class=('active' if action_name=='uploads')
|
// Add link if user has uploaded screenshots
|
||||||
a href='#'
|
- if @current_users_screenshots and @current_users_screenshots.any?
|
||||||
= fa_icon 'image 2x', text: 'My uploads'
|
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
|
li
|
||||||
= link_to destroy_user_session_path
|
= link_to destroy_user_session_path
|
||||||
= fa_icon 'lock 2x', text: 'Logout'
|
= fa_icon 'lock 2x', text: 'Logout'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue