fix: missing content of last index run time
Alan Pearce alan@alanpearce.eu
Mon, 24 Mar 2025 09:16:06 +0100
1 files changed, 8 insertions(+), 6 deletions(-)
M internal/components/search.go → internal/components/search.go
@@ -51,12 +51,14 @@ g.Text(time.Since(Indexing.StartedAt).Round(time.Second).String()), ), g.Text(" ago. "), g.If(!Indexing.FinishedAt.IsZero(), - g.Text("Last run took "), - Time( - DateTime(Indexing.FinishedAt.Format(time.RFC3339)), - Title(Indexing.FinishedAt.Format(time.DateTime)), - g.Text(time.Since(Indexing.FinishedAt).Round(time.Minute).String()), - ), + g.Group([]g.Node{ + g.Text("Last run took "), + Time( + DateTime(Indexing.FinishedAt.Format(time.RFC3339)), + Title(Indexing.FinishedAt.Format(time.DateTime)), + g.Text(time.Since(Indexing.FinishedAt).Round(time.Minute).String()), + ), + }), ), ), P(