diff --git a/web/static/js/task.js b/web/static/js/task.js index ab07488..2d7f85f 100644 --- a/web/static/js/task.js +++ b/web/static/js/task.js @@ -147,6 +147,18 @@ function renderActions() { catch (e) { toast(e.message, 'err'); } }; + // link to the upstream ticket (same affordance as the atomization board) + if (t.external && t.external.url) { + const a = document.createElement('a'); + a.className = 'btn'; + a.style.marginRight = '8px'; + a.href = t.external.url; + a.target = '_blank'; + a.rel = 'noopener'; + a.textContent = 'Source ↗'; + host.appendChild(a); + } + if (root.dataset.isDeveloper === '1') { if (t.status === 'published' && !myClaim()) add('Request assignment', post('claim', { note: '' }), true); if (myClaim() && ['published', 'claim_requested'].includes(t.status)) add('Withdraw request', post('claim/withdraw'));