forked from 0x2620/pandora
change order of paragraphs on 0xdb info page
This commit is contained in:
parent
4b486b5882
commit
93a9bcb92d
1 changed files with 21 additions and 21 deletions
|
@ -389,6 +389,27 @@ pandora.ui.infoView = function(data) {
|
|||
)
|
||||
.appendTo($text);
|
||||
|
||||
data.releasedate && $('<div>')
|
||||
.css(css)
|
||||
.html(
|
||||
formatKey('Release Date') + Ox.formatDate(data.releasedate, '%A, %B %e, %Y')
|
||||
)
|
||||
.appendTo($text);
|
||||
|
||||
if (data.budget || data.gross || data.profit) {
|
||||
$div = $('<div>')
|
||||
.css(css)
|
||||
.appendTo($text);
|
||||
html = [];
|
||||
['budget', 'gross', 'profit'].forEach(function(key) {
|
||||
data[key] && html.push(
|
||||
formatKey(key == 'profit' && data[key] < 0 ? 'loss' : key)
|
||||
+ Ox.formatCurrency(Math.abs(data[key]), '$')
|
||||
);
|
||||
});
|
||||
$div.html(html.join('; '));
|
||||
}
|
||||
|
||||
if (data.connections) {
|
||||
$div = $('<div>')
|
||||
.css(css)
|
||||
|
@ -420,27 +441,6 @@ pandora.ui.infoView = function(data) {
|
|||
$div.html(html.join('; '));
|
||||
}
|
||||
|
||||
data.releasedate && $('<div>')
|
||||
.css(css)
|
||||
.html(
|
||||
formatKey('Release Date') + Ox.formatDate(data.releasedate, '%A, %B %e, %Y')
|
||||
)
|
||||
.appendTo($text);
|
||||
|
||||
if (data.budget || data.gross || data.profit) {
|
||||
$div = $('<div>')
|
||||
.css(css)
|
||||
.appendTo($text);
|
||||
html = [];
|
||||
['budget', 'gross', 'profit'].forEach(function(key) {
|
||||
data[key] && html.push(
|
||||
formatKey(key == 'profit' && data[key] < 0 ? 'loss' : key)
|
||||
+ Ox.formatCurrency(Math.abs(data[key]), '$')
|
||||
);
|
||||
});
|
||||
$div.html(html.join('; '));
|
||||
}
|
||||
|
||||
['reviews', 'links'].forEach(function(key) {
|
||||
data[key] && $('<div>')
|
||||
.css(css)
|
||||
|
|
Loading…
Reference in a new issue