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:
parent
363266fb89
commit
63c268f9c5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user