fix: show meaningful update runs and tidy update access layout

This commit is contained in:
admin committed 2026-10-10 02:46:58 +02:00
1 parent 81def77e3c
commit bef669f3d9
12 files changed
+85 -20

No files matched your search

+2 -2
View File
@@ -393,7 +393,7 @@ func (s *Server) dashboard(w http.ResponseWriter, r *http.Request, session *mode
var events []model.AuditEvent
errorCount := 0
if session.Role == "admin" {
runs, _ = s.store.RecentRuns(r.Context(), 6)
runs, _ = s.store.RecentSignificantRuns(r.Context(), 6)
events, _ = s.store.RecentAudit(r.Context(), 6)
errorCount, _ = s.store.CountErrors(r.Context())
}
@@ -1597,7 +1597,7 @@ func (s *Server) schedulerAPI(w http.ResponseWriter, r *http.Request, session *m
LastIPv6: settings.LastIPv6,
}
if session.Role == "admin" && r.URL.Query().Get("runs") == "1" {
runs, err := s.store.RecentRuns(r.Context(), 6)
runs, err := s.store.RecentSignificantRuns(r.Context(), 6)
if err != nil {
s.serverError(w, err)
return