1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +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': case 'workflow_job':
url += `workflows/${obj.id}`; url += `workflows/${obj.id}`;
break; break;
case 'label':
url = null;
break;
default: default:
url += resource + 's/' + obj.id + '/'; 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){ catch(err){
$log.debug(err); $log.debug(err);