loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(branding): strip metadata information from the footer

When the Forgejo version is displayed in the footer, the metadata
should not be displayed. It was once an indication that Forgejo
includes all of Gitea. But since the hard fork the codebase diverged
and this is no longer accurate.

The metadata is still displayed in the API, admin panels or headers
for the sake of backward compatibility.

Refs: https://codeberg.org/forgejo/discussions/issues/244

+6 -2
+4
modules/templates/helper.go
··· 103 103 "AppVer": func() string { 104 104 return setting.AppVer 105 105 }, 106 + "AppVerNoMetadata": func() string { 107 + version, _, _ := strings.Cut(setting.AppVer, "+") 108 + return version 109 + }, 106 110 "AppDomain": func() string { // documented in mail-templates.md 107 111 return setting.Domain 108 112 },
+1 -1
templates/base/footer_content.tmpl
··· 8 8 {{if .IsAdmin}} 9 9 <a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a> 10 10 {{else}} 11 - {{AppVer}} 11 + {{AppVerNoMetadata}} 12 12 {{end}} 13 13 {{end}} 14 14 {{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
+1 -1
templates/status/404.tmpl
··· 8 8 9 9 <div class="divider"></div> 10 10 <br> 11 - {{if .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}} 11 + {{if .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVerNoMetadata}}</p>{{end}} 12 12 </div> 13 13 </div> 14 14 {{template "base/footer" .}}