all repos — searchix @ 0dc2635e199591b917c8cc8ff40df3c3da6f9ec6

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: missing content of last index run time
Alan Pearce alan@alanpearce.eu
Mon, 24 Mar 2025 09:16:06 +0100
commit

0dc2635e199591b917c8cc8ff40df3c3da6f9ec6

parent

4fa3ceb5ac040a84f2da405c46e4af1231d22f17

1 files changed, 8 insertions(+), 6 deletions(-)

jump to
M internal/components/search.gointernal/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(