mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 09:47:30 +00:00
Fix nil error when some pages are rendered outside request context (#19427)
This commit is contained in:
parent
18727df73a
commit
a56fcdfa8f
|
@ -10,7 +10,7 @@
|
||||||
{{AppVer}}
|
{{AppVer}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if ShowFooterTemplateLoadTime}}
|
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
|
||||||
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
|
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
|
||||||
{{.i18n.Tr "template"}}
|
{{.i18n.Tr "template"}}
|
||||||
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
|
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
|
||||||
|
|
Loading…
Reference in a new issue