display connection descriptions (info page)
This commit is contained in:
parent
0c7fc829d1
commit
73a885370c
1 changed files with 9 additions and 3 deletions
|
@ -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 (
|
||||||
? '<a href="/' + connection.item + '">' + connection.title + '</a>'
|
connection.item
|
||||||
: connection.title;
|
? '<a href="/' + connection.item + '">' + connection.title + '</a>'
|
||||||
|
: connection.title
|
||||||
|
) + (
|
||||||
|
connection.description
|
||||||
|
? ' (' + formatLight(connection.description) + ')'
|
||||||
|
: ''
|
||||||
|
);
|
||||||
}).join(', ')
|
}).join(', ')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue