Counter of own uploads added to top bar
This commit is contained in:
parent
f89a56afe4
commit
11f117f1e2
2 changed files with 9 additions and 4 deletions
|
|
@ -918,3 +918,8 @@ a.black
|
||||||
[type='file'] {
|
[type='file'] {
|
||||||
width: inherit !important;
|
width: inherit !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Badges in the topbar seem a bit too high */
|
||||||
|
nav.top-bar .badge {
|
||||||
|
padding-bottom: 0.2em;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,12 +25,12 @@ nav.top-bar
|
||||||
//a href="#" Ubuntu
|
//a href="#" Ubuntu
|
||||||
li class=('active' if controller_name=='welcome' and action_name=='about')
|
li class=('active' if controller_name=='welcome' and action_name=='about')
|
||||||
a href="/about" 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')
|
li class=('active' if controller_name=='packages' and action_name=='my_uploads')
|
||||||
a href="/my_uploads"
|
a href="/my_uploads"
|
||||||
| My uploads
|
' My uploads
|
||||||
span.badge
|
span.badge.secondary
|
||||||
= @current_users_screenshots
|
= @current_users_screenshots.count
|
||||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
li
|
li
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue