Fix nil error when some pages are rendered outside request context (#19427)

pull/19429/head^2
wxiaoguang 3 years ago committed by GitHub
parent 18727df73a
commit a56fcdfa8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/base/footer_content.tmpl

@ -10,7 +10,7 @@
{{AppVer}}
{{end}}
{{end}}
{{if ShowFooterTemplateLoadTime}}
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
{{.i18n.Tr "template"}}
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>

Loading…
Cancel
Save