diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-03-23 09:15:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 01:15:54 +0000 |
commit | 395117d3014124b9147a1aabf76ee175e720b275 (patch) | |
tree | 7f0f17a2b422bc04a5497d563f45637f87a5e170 /templates | |
parent | db6080f4f8401d65055fc38f00d6fba7f42db8fd (diff) | |
download | gitea-395117d3014124b9147a1aabf76ee175e720b275.tar.gz gitea-395117d3014124b9147a1aabf76ee175e720b275.zip |
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.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/footer_content.tmpl | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index ef183191a4..52e7c7e77e 100644 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -1,7 +1,20 @@ <footer> <div class="ui container"> <div class="ui left"> - {{.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}} + {{.i18n.Tr "powered_by" "Gitea"}} + {{if (or .ShowFooterVersion .PageIsAdmin)}} + {{.i18n.Tr "version"}}: + {{if .IsAdmin}} + <a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a> + {{else}} + {{AppVer}} + {{end}} + {{end}} + {{if ShowFooterTemplateLoadTime}} + {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> + {{.i18n.Tr "template"}} + {{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong> + {{end}} </div> <div class="ui right links"> {{if .ShowFooterBranding}} @@ -20,7 +33,6 @@ {{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}} <a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.i18n.Tr "website"}}</a> {{template "custom/extra_links_footer" .}} - {{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}} </div> </div> </footer> |