Avoid error if nobody is logged in
This commit is contained in:
parent
c00972a909
commit
ffbadb220f
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ nav.top-bar
|
||||||
li class=('active' if controller_name=='welcome' and action_name=='about')
|
li class=('active' if controller_name=='welcome' and action_name=='about')
|
||||||
a href="/about" About
|
a href="/about" About
|
||||||
// Add link if user has uploaded screenshots
|
// Add link if user has uploaded screenshots
|
||||||
- if @current_users_screenshots.any?
|
- if @current_users_screenshots and @current_users_screenshots.any?
|
||||||
li class=('active' if controller_name=='packages' and action_name=='my_uploads')
|
li class=('active' if controller_name=='packages' and action_name=='my_uploads')
|
||||||
= link_to my_uploads_path
|
= link_to my_uploads_path
|
||||||
' My uploads
|
' My uploads
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue