File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -198,9 +198,9 @@ func (ctx *Context) HTML(status int, name base.TplName) {
198
198
log .Debug ("Template: %s" , name )
199
199
tmplStartTime := time .Now ()
200
200
if ! setting .IsProd {
201
- ctx .Data ["TmpName " ] = name
201
+ ctx .Data ["TemplateName " ] = name
202
202
}
203
- ctx .Data ["TmplLoadTimes " ] = func () string {
203
+ ctx .Data ["TemplateLoadTimes " ] = func () string {
204
204
return strconv .FormatInt (time .Since (tmplStartTime ).Nanoseconds ()/ 1e6 , 10 ) + "ms"
205
205
}
206
206
if err := ctx .Render .HTML (ctx .Resp , status , string (name ), ctx .Data ); err != nil {
Original file line number Diff line number Diff line change 1
1
<footer>
2
2
<div class="ui container">
3
3
<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"}}: <strong> {{if .TmpName }}{{.TmpName }}{{end}} {{call .TmplLoadTimes }}</strong>{{end}}
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}}
5
5
</div>
6
6
<div class="ui right links">
7
7
{{if .ShowFooterBranding}}
You can’t perform that action at this time.
0 commit comments