Skip to content

Commit

Permalink
Add .metadata class, and style smaller and lighter.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Feb 17, 2011
1 parent 55d4704 commit 156a385
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions public/app/views/tracks.js
Expand Up @@ -3,18 +3,19 @@ NestedListDemo.views.Tracks = Ext.extend(Ext.NestedList, {
displayField: 'text',
getItemTextTpl: function() {
var tplConstructor = '{text}' +
'<tpl if="model === \'Genre\'">'+
' [genre]' +
'</tpl>' +
'<tpl if="model === \'Artist\'">'+
' {[values.items.length]} albums' +
' <div class="metadata">{[values.items.length]} albums</div>' +
'</tpl>' +
'<tpl if="model === \'Album\'">'+
'<div class="metadata">' +
' {[values.items.length]} tracks' +
' Running time: {[values.items]}' +
'</div>' +
'</tpl>' +
'<tpl if="model === \'Track\'">'+
' {duration}' +
'<div class="metadata">' +
' Running time: {duration} seconds' +
'</div>' +
'</tpl>' +
'';
return tplConstructor;
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/styles.css
@@ -0,0 +1,4 @@
.metadata {
font-size: 80%;
color: #999;
}

0 comments on commit 156a385

Please sign in to comment.