Showing number of users' uploaded screenshots at the top
This commit is contained in:
parent
82fb26efad
commit
bbccbfcc20
3 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue