Minor improvement
This commit is contained in:
parent
11f117f1e2
commit
5c879d579c
1 changed files with 2 additions and 1 deletions
|
|
@ -25,9 +25,10 @@ nav.top-bar
|
|||
//a href="#" Ubuntu
|
||||
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?
|
||||
li class=('active' if controller_name=='packages' and action_name=='my_uploads')
|
||||
a href="/my_uploads"
|
||||
= link_to my_uploads_path
|
||||
' My uploads
|
||||
span.badge.secondary
|
||||
= @current_users_screenshots.count
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue