format links

This commit is contained in:
j 2023-11-17 09:24:29 +01:00
parent 68c4044ebc
commit 7507257e51

View file

@ -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;
}