summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-28 14:24:05 +0800
committerUnknwon <u@gogs.io>2015-08-28 14:24:05 +0800
commita7686e8749f46b13c62c67c7b4fc5dbc0c5a42c3 (patch)
tree150b15f67361e43a3870dc267bdbf69ef126790d /templates
parentff35a37769cbf60cd1522eb05411adbf965c9950 (diff)
downloadgitea-a7686e8749f46b13c62c67c7b4fc5dbc0c5a42c3.tar.gz
gitea-a7686e8749f46b13c62c67c7b4fc5dbc0c5a42c3.zip
#1203 bundle jquery with gogs
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl27
-rw-r--r--templates/ng/base/head.tmpl6
2 files changed, 12 insertions, 21 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 5497b5f86d..8657a52362 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -14,38 +14,33 @@
<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
- {{if CdnMode}}
- <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
- {{else}}
<script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script>
- <link rel="stylesheet" href="{{AppSubUrl}}/css/font-awesome.min.css">
- {{end}}
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/font-awesome-4.4.0.min.css">
<!-- Stylesheet -->
- <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic.min.css?v={{AppVer}}">
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.0.8.min.css">
<link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.min.css?v={{AppVer}}">
<!-- JavaScript -->
- <script src="{{AppSubUrl}}/js/semantic.min.js?v={{AppVer}}"></script>
+ <script src="{{AppSubUrl}}/js/semantic-2.0.8.min.js"></script>
<script src="{{AppSubUrl}}/js/gogs.js?v={{AppVer}}"></script>
<!-- Third-party libraries -->
{{if .RequireHighlightJS}}
- <link rel="stylesheet" href="{{AppSubUrl}}/css/highlightjs/default.css?v={{AppVer}}">
- <script src="{{AppSubUrl}}/js/libs/highlight.pack.js?v={{AppVer}}"></script>
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/highlight-8.7/default.css">
+ <script src="{{AppSubUrl}}/js/libs/highlight-8.7.pack.js"></script>
{{end}}
{{if .RequireMinicolors}}
- <link rel="stylesheet" href="{{AppSubUrl}}/css/jquery.minicolors.css?v={{AppVer}}">
- <script src="{{AppSubUrl}}/js/libs/jquery.minicolors.min.js?v={{AppVer}}"></script>
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/jquery.minicolors-2.1.12.css">
+ <script src="{{AppSubUrl}}/js/libs/jquery.minicolors-2.1.12.min.js"></script>
{{end}}
{{if .RequireDatetimepicker}}
- <link rel="stylesheet" href="{{AppSubUrl}}/css/jquery.datetimepicker.css?v={{AppVer}}">
- <script src="{{AppSubUrl}}/js/libs/jquery.datetimepicker.js?v={{AppVer}}"></script>
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/jquery.datetimepicker-2.4.5.css">
+ <script src="{{AppSubUrl}}/js/libs/jquery.datetimepicker-2.4.5.js"></script>
{{end}}
{{if .RequireDropzone}}
- <link rel="stylesheet" href="{{AppSubUrl}}/css/dropzone.css?v={{AppVer}}">
- <script src="{{AppSubUrl}}/js/libs/dropzone.js?v={{AppVer}}"></script>
+ <link rel="stylesheet" href="{{AppSubUrl}}/css/dropzone-4.0.1.css">
+ <script src="{{AppSubUrl}}/js/libs/dropzone-4.0.1.js"></script>
{{end}}
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl
index faafef563a..95a30c4578 100644
--- a/templates/ng/base/head.tmpl
+++ b/templates/ng/base/head.tmpl
@@ -12,15 +12,11 @@
<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="{{AppSubUrl}}/css/font-awesome.min.css">
<script src="{{AppSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script>
- {{end}}
+
<!-- Stylesheet -->
<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/ui.css">
<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/gogs.css">