Skip to content

Commit 395117d

Browse files
authored
Remove the Go version in UI, add a link on Gitea Version to show config details (Go/Git version) (#19173)
This PR mainly helps maintainers to save time from asking the issue reporters to get the correct version. There are so many reporters that have difficulty to get the correct Gitea version. Some of they just report Go version. The Go version doesn't help debug except in very limited circumstances. Instead, there is a new link on the Gitea version, the link is for the admin/config page which shows all version information, including Gitea, Go, Git, it could help more.
1 parent db6080f commit 395117d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

templates/base/footer_content.tmpl

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
<footer>
22
<div class="ui container">
33
<div class="ui left">
4-
{{.i18n.Tr "powered_by" "Gitea"}} {{if (or .ShowFooterVersion .PageIsAdmin)}}{{.i18n.Tr "version"}}: {{AppVer}}{{end}} {{if ShowFooterTemplateLoadTime}}{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>{{end}}
4+
{{.i18n.Tr "powered_by" "Gitea"}}
5+
{{if (or .ShowFooterVersion .PageIsAdmin)}}
6+
{{.i18n.Tr "version"}}:
7+
{{if .IsAdmin}}
8+
<a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a>
9+
{{else}}
10+
{{AppVer}}
11+
{{end}}
12+
{{end}}
13+
{{if ShowFooterTemplateLoadTime}}
14+
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
15+
{{.i18n.Tr "template"}}
16+
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
17+
{{end}}
518
</div>
619
<div class="ui right links">
720
{{if .ShowFooterBranding}}
@@ -20,7 +33,6 @@
2033
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
2134
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.i18n.Tr "website"}}</a>
2235
{{template "custom/extra_links_footer" .}}
23-
{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
2436
</div>
2537
</div>
2638
</footer>

0 commit comments

Comments
 (0)