database and gitsync issues fixed

This commit is contained in:
Nils Blomgren
2026-06-07 14:54:16 +02:00
parent 8dc46ef031
commit 76b7e55931
72 changed files with 31067 additions and 1508 deletions

View File

@@ -77,21 +77,15 @@
}
@* ── Repo list ── *@
@if (repos is null)
<LoadingPanel Loading="@(repos is null)">
@if (repos is not null && repos.Count == 0 && !showAddForm)
{
<div class="text-center py-3">
<div class="spinner-border spinner-border-sm text-primary" role="status"></div>
</div>
<EmptyState Icon="bi-git"
Message="No repositories registered. Add one to enable Git-sourced deployments." />
}
else if (repos.Count == 0 && !showAddForm)
{
<div class="text-center py-4">
<i class="bi bi-git text-muted" style="font-size: 2rem;"></i>
<p class="text-muted small mt-2 mb-0">No repositories registered. Add one to enable Git-sourced deployments.</p>
</div>
}
else
else if (repos is not null && (repos.Count > 0 || showAddForm))
{
<div class="table-responsive">
<table class="table table-sm mb-0">
<thead class="table-light">
<tr>
@@ -248,7 +242,9 @@
}
</tbody>
</table>
</div>
}
</LoadingPanel>
</div>
</div>