1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

don't render activity stream links for labels

This commit is contained in:
Jake McDermott 2018-05-07 07:22:25 -04:00
parent 363266fb89
commit 63c268f9c5
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35

View File

@ -65,10 +65,20 @@ export default function BuildAnchor($log, $filter) {
case 'workflow_job':
url += `workflows/${obj.id}`;
break;
case 'label':
url = null;
break;
default:
url += resource + 's/' + obj.id + '/';
}
return ' <a href=\"' + url + '\"> ' + $filter('sanitize')(obj.name || obj.username) + ' </a> ';
const name = $filter('sanitize')(obj.name || obj.username);
if (url) {
return ` <a href=\"${url}\"> ${name} </a> `;
}
return ` <span> ${name} </span> `;
}
catch(err){
$log.debug(err);