Fix spacing if BuildTime is missing. (#7800)

Co-authored-by: Gogs <gogs@fake.local>
Co-authored-by: Joe Chen <jc@unknwon.io>
pull/7801/head
Kyle Fawcett 2024-09-07 10:43:29 -05:00 committed by GitHub
parent 69d74485f0
commit e6d4db0b4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,13 @@
<dt>{{.i18n.Tr "admin.dashboard.go_version"}}</dt>
<dd>{{.GoVersion}}</dd>
<dt>{{.i18n.Tr "admin.dashboard.build_time"}}</dt>
<dd>{{.BuildTime}}</dd>
<dd>
{{if .BuildTime}}
{{.BuildTime}}
{{else}}
N/A
{{end}}
</dd>
<dt>{{.i18n.Tr "admin.dashboard.build_commit"}}</dt>
<dd>
{{if .BuildCommit}}