mirror of https://github.com/gogs/gogs.git
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
parent
69d74485f0
commit
e6d4db0b4c
|
@ -17,7 +17,13 @@
|
||||||
<dt>{{.i18n.Tr "admin.dashboard.go_version"}}</dt>
|
<dt>{{.i18n.Tr "admin.dashboard.go_version"}}</dt>
|
||||||
<dd>{{.GoVersion}}</dd>
|
<dd>{{.GoVersion}}</dd>
|
||||||
<dt>{{.i18n.Tr "admin.dashboard.build_time"}}</dt>
|
<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>
|
<dt>{{.i18n.Tr "admin.dashboard.build_commit"}}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{{if .BuildCommit}}
|
{{if .BuildCommit}}
|
||||||
|
|
Loading…
Reference in New Issue