From 24ad131221d8cb0becf726e0570f53838262edf1 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 8 May 2021 16:27:25 +0200 Subject: Rename StaticUrlPrefix to AssetUrlPrefix (#15779) Use a new name for this template/frontend variable to make it distinct from the server variable StaticURLPrefix. --- templates/base/footer.tmpl | 12 ++++++------ templates/base/footer_content.tmpl | 2 +- templates/base/head.tmpl | 16 ++++++++-------- templates/base/head_navbar.tmpl | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'templates/base') diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index bc45315ef9..25e163b19b 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -12,17 +12,17 @@ {{template "base/footer_content" .}} {{if .RequireSimpleMDE}} - - - + + + {{end}} {{if .RequireU2F}} - + {{end}} {{if .EnableCaptcha}} {{if eq .CaptchaType "recaptcha"}} @@ -32,7 +32,7 @@ {{end}} {{end}} - + {{template "custom/footer" .}} diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index f0d8a6f5a4..e30fe70768 100644 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -16,7 +16,7 @@ {{end}} - {{.i18n.Tr "licenses"}} + {{.i18n.Tr "licenses"}} {{if .EnableSwagger}}API{{end}} {{.i18n.Tr "website"}} {{template "custom/extra_links_footer" .}} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index d4de8f7905..10fc2bad4a 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -29,7 +29,7 @@ window.config = { AppVer: '{{AppVer}}', AppSubUrl: '{{AppSubUrl}}', - StaticUrlPrefix: '{{StaticUrlPrefix}}', + AssetUrlPrefix: '{{AssetUrlPrefix}}', UseServiceWorker: {{UseServiceWorker}}, csrf: '{{.CsrfToken}}', HighlightJS: {{if .RequireHighlightJS}}true{{else}}false{{end}}, @@ -61,12 +61,12 @@ {{end}} }; - - + + {{if .RequireSimpleMDE}} - + {{end}} - +