about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-03-24 09:16:06 +0100
committerAlan Pearce2025-03-24 09:16:06 +0100
commit0dc2635e199591b917c8cc8ff40df3c3da6f9ec6 (patch)
tree0d96ede040980fee93fc1e51108cb39d2fc553cf
parent4fa3ceb5ac040a84f2da405c46e4af1231d22f17 (diff)
downloadsearchix-0dc2635e199591b917c8cc8ff40df3c3da6f9ec6.tar.lz
searchix-0dc2635e199591b917c8cc8ff40df3c3da6f9ec6.tar.zst
searchix-0dc2635e199591b917c8cc8ff40df3c3da6f9ec6.zip
fix: missing content of last index run time
-rw-r--r--internal/components/search.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/internal/components/search.go b/internal/components/search.go
index 3c28597..3db1cd4 100644
--- a/internal/components/search.go
+++ b/internal/components/search.go
@@ -51,12 +51,14 @@ func SearchPage(tdata TemplateData, r ResultData, children ...g.Node) g.Node {
 				),
 				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(