diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2020-02-11 19:53:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 20:53:18 -0500 |
commit | d67e9b9629557df1e355f0a864792c194b3e8848 (patch) | |
tree | f7138acd6776fe08ebb40b840d898fbb47234d4a /templates/base | |
parent | 2399bad1f1a4ab36b2fd05745beaea5fb1f53dab (diff) | |
download | gitea-d67e9b9629557df1e355f0a864792c194b3e8848.tar.gz gitea-d67e9b9629557df1e355f0a864792c194b3e8848.zip |
SVG Octicon fixes (#10237)
* SVG fixes
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Colorize span->svg only
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* @silverwind suggestions
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Alphabetical
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Convert suburl and staticPrefix to window.config
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* De-structure
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index c9ae07f632..f1558f9484 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -36,8 +36,6 @@ <meta name="keywords" content="{{MetaKeywords}}"> <meta name="referrer" content="no-referrer" /> <meta name="_csrf" content="{{.CsrfToken}}" /> - <meta name="_suburl" content="{{AppSubUrl}}" /> - <meta name="_staticprefix" content="{{StaticUrlPrefix}}" /> {{if .IsSigned}} <meta name="_uid" content="{{.SignedUser.ID}}" /> {{end}} @@ -86,6 +84,8 @@ </script> <script> window.config = { + AppSubUrl: '{{AppSubUrl}}', + StaticUrlPrefix: '{{StaticUrlPrefix}}', Datetimepicker: {{if .RequireDatetimepicker}}true{{else}}false{{end}}, Dropzone: {{if .RequireDropzone}}true{{else}}false{{end}}, HighlightJS: {{if .RequireHighlightJS}}true{{else}}false{{end}}, |