diff options
Diffstat (limited to 'templates/ng/base/head.tmpl')
-rw-r--r-- | templates/ng/base/head.tmpl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl index 40c3899e91..222edb690f 100644 --- a/templates/ng/base/head.tmpl +++ b/templates/ng/base/head.tmpl @@ -1,6 +1,6 @@ <!DOCTYPE html> <html> - <head> + <head{{if AppRootSubUrl}} data-suburl="{{AppRootSubUrl}}"{{end}}> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="author" content="Gogs - Go Git Service" /> @@ -9,27 +9,27 @@ <meta name="_csrf" content="{{.CsrfToken}}" /> {{if .Repository.IsGoget}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}} - <link rel="shortcut icon" href="/img/favicon.png" /> + <link rel="shortcut icon" href="{{AppRootSubUrl}}/img/favicon.png" /> {{if CdnMode}} <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> {{else}} - <link rel="stylesheet" href="/css/font-awesome.min.css"> + <link rel="stylesheet" href="{{AppRootSubUrl}}/css/font-awesome.min.css"> - <script src="/ng/js/lib/jquery-1.11.1.min.js"></script> + <script src="{{AppRootSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script> {{end}} <!-- Stylesheet --> - <link rel="stylesheet" href="/ng/css/ui.css"> - <link rel="stylesheet" href="/ng/css/gogs.css"> - <link rel="stylesheet" href="/ng/fonts/octicons.css"> - <link rel="stylesheet" href="/css/github.min.css"> + <link rel="stylesheet" href="{{AppRootSubUrl}}/ng/css/ui.css"> + <link rel="stylesheet" href="{{AppRootSubUrl}}/ng/css/gogs.css"> + <link rel="stylesheet" href="{{AppRootSubUrl}}/ng/fonts/octicons.css"> + <link rel="stylesheet" href="{{AppRootSubUrl}}/css/github.min.css"> <!-- JavaScript --> - <script src="/ng/js/lib/tabs.js"></script> - <script src="/ng/js/lib/lib.js"></script> - <script src="/ng/js/gogs.js"></script> + <script src="{{AppRootSubUrl}}/ng/js/lib/tabs.js"></script> + <script src="{{AppRootSubUrl}}/ng/js/lib/lib.js"></script> + <script src="{{AppRootSubUrl}}/ng/js/gogs.js"></script> <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> </head> |