').css({marginBottom: '4px', fontWeight: 'bold'}).html(Ox.toTitleCase(key))
+ ? $('
').css({marginBottom: '4px', fontWeight: 'bold'})
+ .html(Ox.toTitleCase(key).replace(' Per ', ' per '))
: '
' + Ox.toTitleCase(key) + ': ';
}
diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js
index 64b0adeb..bac730a2 100644
--- a/static/js/pandora/infoView.padma.js
+++ b/static/js/pandora/infoView.padma.js
@@ -456,6 +456,25 @@ pandora.ui.infoView = function(data) {
);
}
+ // Duration, Aspect Ratio --------------------------------------------------
+
+ ['duration', 'aspectratio'].forEach(function(key) {
+ var itemKey = Ox.getObjectById(pandora.site.itemKeys, key),
+ value = data[key] || 0;
+ $('
')
+ .css({marginBottom: '4px'})
+ .append(formatKey(itemKey.title, true))
+ .append(
+ Ox.Theme.formatColor(null, 'gradient')
+ .css({textAlign: 'right'})
+ .html(
+ Ox['format' + Ox.toTitleCase(itemKey.format.type)]
+ .apply(null, [value].concat(itemKey.format.args))
+ )
+ )
+ .appendTo($right);
+ });
+
// Hue, Saturation, Lightness, Volume --------------------------------------
['hue', 'saturation', 'lightness', 'volume'].forEach(function(key) {
@@ -470,6 +489,18 @@ pandora.ui.infoView = function(data) {
.appendTo($right);
});
+ // Cuts per Minute ---------------------------------------------------------
+
+ $('
')
+ .css({marginBottom: '4px'})
+ .append(formatKey('cuts per minute', true))
+ .append(
+ Ox.Theme.formatColor(null, 'gradient')
+ .css({textAlign: 'right'})
+ .html(Ox.formatNumber(data['cutsperminute'] || 0, 3))
+ )
+ .appendTo($right);
+
// User and Groups ---------------------------------------------------------
['user', 'groups'].forEach(function(key) {
@@ -589,7 +620,8 @@ pandora.ui.infoView = function(data) {
function formatKey(key, isStatistics) {
return isStatistics
- ? $('
').css({marginBottom: '4px', fontWeight: 'bold'}).html(Ox.toTitleCase(key))
+ ? $('
').css({marginBottom: '4px', fontWeight: 'bold'})
+ .html(Ox.toTitleCase(key).replace(' Per ', ' per '))
: '' + Ox.toTitleCase(key) + ': ';
}