Add tracker link on project detail page

This commit is contained in:
Mikhail Chusavitin
2026-02-06 16:31:34 +03:00
parent 51e2d1fc83
commit 8a8ea10dc2

View File

@@ -21,6 +21,11 @@
Импорт квоты
</button>
</div>
<div class="mt-2">
<a id="tracker-link" href="https://tracker.yandex.ru/OPS-1933" target="_blank" rel="noopener noreferrer" class="text-sm text-blue-600 hover:text-blue-800 hover:underline">
открыть в трекере
</a>
</div>
<div class="mt-4 inline-flex rounded-lg border border-gray-200 overflow-hidden">
<button id="status-active-btn" onclick="setConfigStatusMode('active')" class="px-4 py-2 text-sm font-medium bg-blue-600 text-white">
@@ -218,6 +223,10 @@ async function loadProject() {
}
project = await resp.json();
document.getElementById('project-title').textContent = project.name;
const trackerLink = document.getElementById('tracker-link');
if (trackerLink && project && project.name) {
trackerLink.href = 'https://tracker.yandex.ru/' + encodeURIComponent(project.name);
}
return true;
}