0xdb info view: update score layout

This commit is contained in:
rolux 2012-10-05 15:35:40 +02:00
parent 8b21a69c56
commit 6d55536b78

View File

@ -460,8 +460,15 @@ pandora.ui.infoView = function(data) {
var value = data[key] || 0; var value = data[key] || 0;
$('<div>') $('<div>')
.css({marginBottom: '4px'}) .css({marginBottom: '4px'})
.append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true) .append(
.append(Ox.Theme.formatColorPercent(value, 1, true)) formatKey(
key == 'votes' ? 'Mainstream Score' : 'Arthouse Score', true
)
)
.append(
Ox.Theme.formatColorPercent(value, 1, true)
.css({textAlign: 'right'})
)
.appendTo($statistics); .appendTo($statistics);
}); });