Counter of own uploads added to top bar

This commit is contained in:
Christoph Haas 2017-02-01 09:37:41 +01:00
parent f89a56afe4
commit 11f117f1e2
2 changed files with 9 additions and 4 deletions

View file

@ -918,3 +918,8 @@ a.black
[type='file'] {
width: inherit !important;
}
/* Badges in the topbar seem a bit too high */
nav.top-bar .badge {
padding-bottom: 0.2em;
}

View file

@ -25,12 +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
- if @current_users_screenshots.any?
li class=('active' if controller_name=='packages' and action_name=='my_uploads')
a href="/my_uploads"
| My uploads
span.badge
= @current_users_screenshots
' My uploads
span.badge.secondary
= @current_users_screenshots.count
// TODO: Check correct classes in Zurb/Foundation for top bar!
- if user_signed_in?
li