info view: move release date, budget, rating

This commit is contained in:
rolux 2012-10-04 11:27:06 +02:00
parent 8becaf2bb8
commit d7026cc5dc

View file

@ -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)