Avoid error if nobody is logged in

This commit is contained in:
Christoph Haas 2017-04-02 17:53:21 +02:00
parent c00972a909
commit ffbadb220f

View file

@ -26,7 +26,7 @@ nav.top-bar
li class=('active' if controller_name=='welcome' and action_name=='about')
a href="/about" About
// 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')
= link_to my_uploads_path
' My uploads