KAOS/code/web/templates/layout.html
djuka 3302f83cff T09: Dashboard — Kanban board sa Go templates
- html/template sistem: layout, dashboard, column, task-card, task-detail
- Dark tema CSS, responsive grid (5→3→2→1 kolona)
- HTMX: klik→detalj panel, move dugmad, auto-refresh active kolone
- /report/:id za prikaz izveštaja
- Slide-in animacija za detalj panel
- 16 server testova, 83 ukupno — svi prolaze
- T08 premešten u done/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:14:31 +00:00

31 lines
752 B
HTML

<!DOCTYPE html>
<html lang="sr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>KAOS Dashboard</title>
<link rel="stylesheet" href="/static/style.css">
<script src="/static/htmx.min.js"></script>
</head>
<body>
<div class="header">
<h1>🔧 KAOS Dashboard</h1>
<span class="version">v0.2</span>
</div>
{{block "content" .}}{{end}}
<div id="task-detail"></div>
<script>
document.body.addEventListener('htmx:afterSwap', function(e) {
if (e.detail.target.id === 'task-detail') {
e.detail.target.classList.add('active');
}
});
function closeDetail() {
var el = document.getElementById('task-detail');
el.classList.remove('active');
el.innerHTML = '';
}
</script>
</body>
</html>