File tree 6 files changed +12
-1
lines changed
docs/content/administration
6 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2315,6 +2315,8 @@ LEVEL = Info
2315
2315
; SHOW_FOOTER_VERSION = true
2316
2316
; ; Show template execution time in the footer
2317
2317
; SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
2318
+ ; ; Show the "powered by" text in the footer
2319
+ ; SHOW_FOOTER_POWERED_BY = true
2318
2320
; ; Generate sitemap. Defaults to `true`.
2319
2321
; ENABLE_SITEMAP = true
2320
2322
; ; Enable/Disable RSS/Atom feed
Original file line number Diff line number Diff line change @@ -1429,5 +1429,6 @@ Like `uses: https://gitea.com/actions/checkout@v4` or `uses: http://your-git-ser
1429
1429
1430
1430
- ` SHOW_FOOTER_VERSION ` : ** true** : Show Gitea and Go version information in the footer.
1431
1431
- ` SHOW_FOOTER_TEMPLATE_LOAD_TIME ` : ** true** : Show time of template execution in the footer.
1432
+ - ` SHOW_FOOTER_POWERED_BY ` : ** true** : Show the "powered by" text in the footer.
1432
1433
- ` ENABLE_SITEMAP ` : ** true** : Generate sitemap.
1433
1434
- ` ENABLE_FEED ` : ** true** : Enable/Disable RSS/Atom feed.
Original file line number Diff line number Diff line change @@ -1353,5 +1353,6 @@ PROXY_HOSTS = *.github.com
1353
1353
1354
1354
- ` SHOW_FOOTER_VERSION ` : ** true** : 在页面底部显示Gitea的版本。
1355
1355
- ` SHOW_FOOTER_TEMPLATE_LOAD_TIME ` : ** true** : 在页脚显示模板执行的时间。
1356
+ - ` SHOW_FOOTER_POWERED_BY ` : ** true** : 在页脚显示“由...提供动力”的文本。
1356
1357
- ` ENABLE_SITEMAP ` : ** true** : 生成sitemap.
1357
1358
- ` ENABLE_FEED ` : ** true** : 是否启用RSS/Atom
Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ import "code.gitea.io/gitea/modules/log"
8
8
type OtherConfig struct {
9
9
ShowFooterVersion bool
10
10
ShowFooterTemplateLoadTime bool
11
+ ShowFooterPoweredBy bool
11
12
EnableFeed bool
12
13
EnableSitemap bool
13
14
}
14
15
15
16
var Other = OtherConfig {
16
17
ShowFooterVersion : true ,
17
18
ShowFooterTemplateLoadTime : true ,
19
+ ShowFooterPoweredBy : true ,
18
20
EnableSitemap : true ,
19
21
EnableFeed : true ,
20
22
}
Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ func NewFuncMap() template.FuncMap {
106
106
"ShowFooterTemplateLoadTime" : func () bool {
107
107
return setting .Other .ShowFooterTemplateLoadTime
108
108
},
109
+ "ShowFooterPoweredBy" : func () bool {
110
+ return setting .Other .ShowFooterPoweredBy
111
+ },
109
112
"AllowedReactions" : func () []string {
110
113
return setting .UI .Reactions
111
114
},
Original file line number Diff line number Diff line change 1
1
<footer class="page-footer" role="group" aria-label="{{ctx.Locale.Tr "aria.footer"}}">
2
2
<div class="left-links" role="contentinfo" aria-label="{{ctx.Locale.Tr "aria.footer.software"}}">
3
- <a target="_blank" rel="noopener noreferrer" href="https://about.gitea.com">{{ctx.Locale.Tr "powered_by" "Gitea"}}</a>
3
+ {{if ShowFooterPoweredBy}}
4
+ <a target="_blank" rel="noopener noreferrer" href="https://about.gitea.com">{{ctx.Locale.Tr "powered_by" "Gitea"}}</a>
5
+ {{end}}
4
6
{{if (or .ShowFooterVersion .PageIsAdmin)}}
5
7
{{ctx.Locale.Tr "version"}}:
6
8
{{if .IsAdmin}}
You can’t perform that action at this time.
0 commit comments