display connection descriptions (info page)

This commit is contained in:
rolux 2012-09-29 18:28:00 +02:00
parent 0c7fc829d1
commit 73a885370c

View file

@ -439,9 +439,15 @@ pandora.ui.infoView = function(data) {
].forEach(function(key) { ].forEach(function(key) {
data.connections[key] && html.push( data.connections[key] && html.push(
formatKey(key) + data.connections[key].map(function(connection) { formatKey(key) + data.connections[key].map(function(connection) {
return connection.item return (
connection.item
? '<a href="/' + connection.item + '">' + connection.title + '</a>' ? '<a href="/' + connection.item + '">' + connection.title + '</a>'
: connection.title; : connection.title
) + (
connection.description
? ' (' + formatLight(connection.description) + ')'
: ''
);
}).join(', ') }).join(', ')
); );
}); });