feat(requests): текст темы в списке заявлений теперь ссылка на страницу деталей

This commit is contained in:
Игорь Надеин 2025-12-29 14:47:13 +03:00
parent 662273ac06
commit f6a1315d76
2 changed files with 5 additions and 3 deletions

View File

@ -413,7 +413,7 @@ export function initRequestListHandler(options) {
actionButtons = `
<a href="${approverUrl}" class="text-decoration-none d-block">
<span class="badge ${req.status === "approved" ? "text-bg-success" : req.status === "rejected" ? "text-bg-danger" : "text-bg-secondary"}" style="word-break: break-word; white-space: normal;">
${approverLabel}: ${escapeHtml(approverName)}
${escapeHtml(approverName)}
</span>
</a>
`;
@ -466,7 +466,9 @@ export function initRequestListHandler(options) {
<!-- Заголовок и тип -->
<div class="req-cell req-cell-title">
<div class="req-cell-content">
<strong>${escapeHtml(req.title || "Без заголовка")}</strong>
<a href="/requests/${req.id}/" class="text-decoration-none">
<strong>${escapeHtml(req.title || "Без заголовка")}</strong>
</a>
${
type
? `<span class="badge text-bg-light ms-1">${typeText}</span>`

View File

@ -44,7 +44,7 @@
<h6 class="mb-0 text-secondary">Создано</h6>
</div>
<div class="req-cell req-cell-actions">
<h6 class="mb-0 text-secondary">Действия</h6>
<h6 class="mb-0 text-secondary">Согласование</h6>
</div>
</div>
</div>