refactor: move js to bottom and move css to top. (#689)
This commit is contained in:
parent
0934d1b1ea
commit
2831267db1
|
@ -27,26 +27,40 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
<script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script>
|
||||||
|
<script src="{{AppSubUrl}}/js/libs/jquery.are-you-sure.js"></script>
|
||||||
|
{{if .RequireSimpleMDE}}
|
||||||
|
<script src="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.js"></script>
|
||||||
|
<script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/addon/mode/loadmode.js"></script>
|
||||||
|
<script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/meta.js"></script>
|
||||||
|
<script>
|
||||||
|
CodeMirror.modeURL = "{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/%N/%N.js";
|
||||||
|
</script>
|
||||||
|
{{end}}
|
||||||
|
{{if .RequireGitGraph}}
|
||||||
|
<!-- graph -->
|
||||||
|
<script src="{{AppSubUrl}}/js/libs/gitgraph.js"></script>
|
||||||
|
<script src="{{AppSubUrl}}/js/draw.js"></script>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
<!-- JavaScript -->
|
||||||
|
<script src="{{AppSubUrl}}/js/semantic-2.2.1.min.js"></script>
|
||||||
|
<script src="{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}"></script>
|
||||||
|
|
||||||
<!-- Third-party libraries -->
|
<!-- Third-party libraries -->
|
||||||
{{if .RequireHighlightJS}}
|
{{if .RequireHighlightJS}}
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/highlight-9.6.0/github.css">
|
|
||||||
<script src="{{AppSubUrl}}/plugins/highlight-9.6.0/highlight.pack.js"></script>
|
<script src="{{AppSubUrl}}/plugins/highlight-9.6.0/highlight.pack.js"></script>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .RequireMinicolors}}
|
{{if .RequireMinicolors}}
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">
|
|
||||||
<script src="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.min.js"></script>
|
<script src="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.min.js"></script>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .RequireDatetimepicker}}
|
{{if .RequireDatetimepicker}}
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.css">
|
|
||||||
<script src="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js"></script>
|
<script src="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js"></script>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .RequireDropzone}}
|
{{if .RequireDropzone}}
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.css">
|
|
||||||
<script src="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.js"></script>
|
<script src="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.js"></script>
|
||||||
{{end}}
|
{{end}}
|
||||||
<script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script>
|
<script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script>
|
||||||
<script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script>
|
<script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,54 +1,50 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head data-suburl="{{AppSubUrl}}">
|
<head data-suburl="{{AppSubUrl}}">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
|
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
|
||||||
|
<meta name="theme-color" content="{{ThemeColorMetaTag}}">
|
||||||
<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gitea - Git with a cup of tea{{end}}" />
|
<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gitea - Git with a cup of tea{{end}}" />
|
||||||
<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go{{end}}" />
|
<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go{{end}}" />
|
||||||
<meta name="keywords" content="go, git, self-hosted, gitea">
|
<meta name="keywords" content="go, git, self-hosted, gitea">
|
||||||
<meta name="referrer" content="no-referrer" />
|
<meta name="referrer" content="no-referrer" />
|
||||||
<meta name="_csrf" content="{{.CsrfToken}}" />
|
<meta name="_csrf" content="{{.CsrfToken}}" />
|
||||||
<meta name="_suburl" content="{{AppSubUrl}}" />
|
<meta name="_suburl" content="{{AppSubUrl}}" />
|
||||||
{{if .GoGetImport}}
|
{{if .GoGetImport}}
|
||||||
<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
|
<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
|
||||||
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
|
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
|
<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
|
||||||
|
|
||||||
<script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script>
|
|
||||||
<script src="{{AppSubUrl}}/js/libs/jquery.are-you-sure.js"></script>
|
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/assets/font-awesome-4.6.3/css/font-awesome.min.css">
|
<link rel="stylesheet" href="{{AppSubUrl}}/assets/font-awesome-4.6.3/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/assets/octicons-4.3.0/octicons.min.css">
|
<link rel="stylesheet" href="{{AppSubUrl}}/assets/octicons-4.3.0/octicons.min.css">
|
||||||
|
|
||||||
{{if .RequireSimpleMDE}}
|
{{if .RequireSimpleMDE}}
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css">
|
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css">
|
||||||
<script src="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.js"></script>
|
{{end}}
|
||||||
<script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/addon/mode/loadmode.js"></script>
|
|
||||||
<script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/meta.js"></script>
|
|
||||||
<script>
|
|
||||||
CodeMirror.modeURL = "{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/%N/%N.js";
|
|
||||||
</script>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{if .RequireGitGraph}}
|
{{if .RequireGitGraph}}
|
||||||
<!-- graph -->
|
<!-- graph -->
|
||||||
<script src="{{AppSubUrl}}/js/libs/gitgraph.js"></script>
|
|
||||||
<script src="{{AppSubUrl}}/js/draw.js"></script>
|
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/css/gitgraph.css">
|
<link rel="stylesheet" href="{{AppSubUrl}}/css/gitgraph.css">
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<!-- Stylesheet -->
|
<!-- Stylesheet -->
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.2.1.min.css">
|
<link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.2.1.min.css">
|
||||||
<link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
|
<link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
|
||||||
|
|
||||||
<!-- JavaScript -->
|
{{if .RequireHighlightJS}}
|
||||||
<script src="{{AppSubUrl}}/js/semantic-2.2.1.min.js"></script>
|
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/highlight-9.6.0/github.css">
|
||||||
<script src="{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}"></script>
|
{{end}}
|
||||||
|
{{if .RequireMinicolors}}
|
||||||
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
|
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">
|
||||||
|
{{end}}
|
||||||
<meta name="theme-color" content="{{ThemeColorMetaTag}}">
|
{{if .RequireDatetimepicker}}
|
||||||
|
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.css">
|
||||||
|
{{end}}
|
||||||
|
{{if .RequireDropzone}}
|
||||||
|
<link rel="stylesheet" href="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.css">
|
||||||
|
{{end}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="full height">
|
<div class="full height">
|
||||||
|
|
Loading…
Reference in New Issue