WebUIs: fix css loading order

Fixes #1628

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-05-24 18:22:58 +02:00
parent 3f2604d33f
commit 525f33a07a
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -800,11 +800,11 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" /> <link rel="shortcut icon" href="{{.StaticURL}}{{.Branding.FaviconPath}}" />
{{- template "fonts" . }} {{- template "fonts" . }}
{{- block "extra_css" .}}{{- end}}
{{- range .Branding.DefaultCSS}} {{- range .Branding.DefaultCSS}}
<link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css"> <link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css">
{{- end}} {{- end}}
{{- template "globalstyle" .CSPNonce }} {{- template "globalstyle" .CSPNonce }}
{{- block "extra_css" .}}{{- end}}
{{- range .Branding.ExtraCSS}} {{- range .Branding.ExtraCSS}}
<link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css"> <link href="{{$.StaticURL}}{{.}}" rel="stylesheet" type="text/css">
{{- end}} {{- end}}