Showing number of users' uploaded screenshots at the top

This commit is contained in:
Christoph Haas 2017-01-31 22:44:11 +01:00
parent 82fb26efad
commit bbccbfcc20
3 changed files with 23 additions and 0 deletions

View file

@ -25,6 +25,12 @@ nav.top-bar
//a href="#" Ubuntu
li class=('active' if controller_name=='welcome' and action_name=='about')
a href="/about" About
- if @current_users_screenshots
li class=('active' if controller_name=='packages' and action_name=='my_uploads')
a href="/my_uploads"
| My uploads
span.badge
= @current_users_screenshots
// TODO: Check correct classes in Zurb/Foundation for top bar!
- if user_signed_in?
li