diff --git a/app/templates/index.html b/app/templates/index.html index 7bd5663..0c21cda 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -12,6 +12,7 @@ .btn-subscribe { background: #007bff; color: white; } .btn-unsubscribe { background: #dc3545; color: white; } .btn-push { background: #28a745; color: white; } + .btn-changes { background: #ffc107; color: white; } .status-ok { color: #28a745; font-size: 13px; } .status-warn { color: #dc3545; font-size: 13px; } hr { border: none; border-top: 1px solid #ccc; margin: 20px 0; } @@ -68,6 +69,17 @@ async function loadProjects() { const writeStatus = proj.can_write ? '✅ Schreibfrei' : '❌ Nur Lesen'; + + // ✅ NEU: Zeige Changes an wenn vorhanden! + let changesHtml = ''; + if (proj.has_changes && proj.uncommitted_files) { + const fileCount = proj.uncommitted_files.filter(f => f && !f.startsWith('??')).length; + if (fileCount > 0) { + changesHtml = `⚠️ ${fileCount} Datei(en) geändert (nicht committed)`; + } else { + changesHtml = '⚠️ Neuer Inhalt erkannt'; + } + } card.innerHTML = `