Show collapsible IP check cycles in the registry

This commit is contained in:
ayurishchev committed 2026-11-23 11:53:08 +03:00
1 parent 94124747ce
commit b58d5f5b82
16 files changed
+332 -36

No files matched your search

+2 -1
View File
@@ -44,6 +44,7 @@ type registryPageData struct {
type registryDetailData struct {
PageData
History registryHistoryResponse
Cycles []registryCycleView
}
// handleRegistryPage lists every address ever submitted to the check
@@ -347,7 +348,7 @@ func registryRunOptions(runs []analyticsRun, chosen int64) []runOption {
func (s *Server) handleRegistryDetail(w http.ResponseWriter, r *http.Request) {
ip := r.PathValue("ip")
history, err := s.CA.GetRegistryHistory(r.Context(), ip)
data := registryDetailData{History: history}
data := registryDetailData{History: history, Cycles: buildRegistryCycles(history)}
data.ActiveNav = "registry"
data.Banner = bannerFor(err)
s.renderPage(w, r, "registry_detail_page", data)