From e6d4db0b4c0a8531fe0ac0184b237aa1e8808de7 Mon Sep 17 00:00:00 2001 From: Kyle Fawcett <16923433+RustyPotato@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:43:29 -0500 Subject: [PATCH] Fix spacing if BuildTime is missing. (#7800) Co-authored-by: Gogs Co-authored-by: Joe Chen --- templates/admin/dashboard.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index b8ce439ee..af00870a4 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -17,7 +17,13 @@
{{.i18n.Tr "admin.dashboard.go_version"}}
{{.GoVersion}}
{{.i18n.Tr "admin.dashboard.build_time"}}
-
{{.BuildTime}}
+
+ {{if .BuildTime}} + {{.BuildTime}} + {{else}} + N/A + {{end}} +
{{.i18n.Tr "admin.dashboard.build_commit"}}
{{if .BuildCommit}}