aboutsummaryrefslogtreecommitdiff
path: root/templates/ng/base/head.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-19 20:11:34 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-19 20:11:34 -0400
commit7ba9257a7ff659417501baf7358216555cebcd86 (patch)
treeffc842cec4165d1069220ae16e08a0b824952f4b /templates/ng/base/head.tmpl
parent6a7bd097fe2b3e894830fc3fdb60dde5594b61d6 (diff)
Add suburl support
Diffstat (limited to 'templates/ng/base/head.tmpl')
-rw-r--r--templates/ng/base/head.tmpl22
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl
index 222edb69..efdc9653 100644
--- a/templates/ng/base/head.tmpl
+++ b/templates/ng/base/head.tmpl
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
- <head{{if AppRootSubUrl}} data-suburl="{{AppRootSubUrl}}"{{end}}>
+ <head{{if AppSubUrl}} data-suburl="{{AppSubUrl}}"{{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="{{AppRootSubUrl}}/img/favicon.png" />
+ <link rel="shortcut icon" href="{{AppSubUrl}}/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="{{AppRootSubUrl}}/css/font-awesome.min.css">
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/font-awesome.min.css">
- <script src="{{AppRootSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script>
+ <script src="{{AppSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script>
{{end}}
<!-- Stylesheet -->
- <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">
+ <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/ui.css">
+ <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/gogs.css">
+ <link rel="stylesheet" href="{{AppSubUrl}}/ng/fonts/octicons.css">
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/github.min.css">
<!-- JavaScript -->
- <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>
+ <script src="{{AppSubUrl}}/ng/js/lib/tabs.js"></script>
+ <script src="{{AppSubUrl}}/ng/js/lib/lib.js"></script>
+ <script src="{{AppSubUrl}}/ng/js/gogs.js"></script>
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
</head>