info view: move release date, budget, rating
This commit is contained in:
parent
8becaf2bb8
commit
d7026cc5dc
1 changed files with 31 additions and 31 deletions
|
@ -389,6 +389,37 @@ pandora.ui.infoView = function(data) {
|
|||
)
|
||||
.appendTo($text);
|
||||
|
||||
if (data.connections) {
|
||||
$div = $('<div>')
|
||||
.css(css)
|
||||
.appendTo($text);
|
||||
html = [];
|
||||
[
|
||||
'Edited from', 'Edited into',
|
||||
'Features', 'Featured in',
|
||||
'Follows', 'Followed by',
|
||||
'References', 'Referenced in',
|
||||
'Remake of', 'Remade as',
|
||||
'Spin off from', 'Spin off',
|
||||
'Spoofs', 'Spoofed in'
|
||||
].forEach(function(key) {
|
||||
data.connections[key] && html.push(
|
||||
formatKey(key) + data.connections[key].map(function(connection) {
|
||||
return (
|
||||
connection.item
|
||||
? '<a href="/' + connection.item + '">' + connection.title + '</a>'
|
||||
: connection.title
|
||||
) + (
|
||||
connection.description
|
||||
? ' ' + formatLight('(' + connection.description + ')')
|
||||
: ''
|
||||
);
|
||||
}).join(', ')
|
||||
);
|
||||
});
|
||||
$div.html(html.join('; '));
|
||||
}
|
||||
|
||||
data.releasedate && $('<div>')
|
||||
.css(css)
|
||||
.html(
|
||||
|
@ -424,37 +455,6 @@ pandora.ui.infoView = function(data) {
|
|||
$div.html(html.join('; '));
|
||||
}
|
||||
|
||||
if (data.connections) {
|
||||
$div = $('<div>')
|
||||
.css(css)
|
||||
.appendTo($text);
|
||||
html = [];
|
||||
[
|
||||
'Edited from', 'Edited into',
|
||||
'Features', 'Featured in',
|
||||
'Follows', 'Followed by',
|
||||
'References', 'Referenced in',
|
||||
'Remake of', 'Remade as',
|
||||
'Spin off from', 'Spin off',
|
||||
'Spoofs', 'Spoofed in'
|
||||
].forEach(function(key) {
|
||||
data.connections[key] && html.push(
|
||||
formatKey(key) + data.connections[key].map(function(connection) {
|
||||
return (
|
||||
connection.item
|
||||
? '<a href="/' + connection.item + '">' + connection.title + '</a>'
|
||||
: connection.title
|
||||
) + (
|
||||
connection.description
|
||||
? ' ' + formatLight('(' + connection.description + ')')
|
||||
: ''
|
||||
);
|
||||
}).join(', ')
|
||||
);
|
||||
});
|
||||
$div.html(html.join('; '));
|
||||
}
|
||||
|
||||
['reviews', 'links'].forEach(function(key) {
|
||||
data[key] && $('<div>')
|
||||
.css(css)
|
||||
|
|
Loading…
Reference in a new issue