2011-07-29 18:37:11 +00:00
|
|
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
2011-05-25 19:42:45 +00:00
|
|
|
pandora.ui.status = function(key, data) {
|
|
|
|
var that = Ox.toTitleCase(key) + ': ' + [
|
2011-09-04 18:43:41 +00:00
|
|
|
Ox.formatNumber(data.items) + ' '+ (data.items != 1 ? pandora.site.itemName.plural : pandora.site.itemName.sinular),
|
2011-05-25 19:42:45 +00:00
|
|
|
Ox.formatDuration(data.runtime, 'medium'),
|
|
|
|
data.files + ' file' + (data.files != 1 ? 's' : ''),
|
|
|
|
Ox.formatDuration(data.duration, 'short'),
|
|
|
|
Ox.formatValue(data.size, 'B'),
|
|
|
|
Ox.formatValue(data.pixels, 'px')
|
|
|
|
].join(', ');
|
|
|
|
return that;
|
|
|
|
};
|
|
|
|
|