format links
This commit is contained in:
parent
68c4044ebc
commit
7507257e51
1 changed files with 5 additions and 0 deletions
|
@ -646,6 +646,11 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
ret = pandora.formatDate(value);
|
||||
} else if (listKeys.indexOf(key) > -1) {
|
||||
ret = value.split(', ');
|
||||
} else if (key == 'links') {
|
||||
ret = value.split(', ').map(function(link) {
|
||||
return '<a href="' + link + '">' + Ox.parseURL(link).host + '</a>';
|
||||
}).join(', ');
|
||||
|
||||
} else {
|
||||
ret = value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue