|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html>
|
3 | 3 | <head data-suburl="{{AppSubUrl}}">
|
4 |
| - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
5 |
| - <meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta http-equiv="x-ua-compatible" content="ie=edge"> |
| 6 | + <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> |
| 7 | + <meta name="theme-color" content="{{ThemeColorMetaTag}}"> |
6 | 8 | <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gitea - Git with a cup of tea{{end}}" />
|
7 | 9 | <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}}" />
|
8 | 10 | <meta name="keywords" content="go, git, self-hosted, gitea">
|
9 | 11 | <meta name="referrer" content="no-referrer" />
|
10 | 12 | <meta name="_csrf" content="{{.CsrfToken}}" />
|
11 | 13 | <meta name="_suburl" content="{{AppSubUrl}}" />
|
12 |
| - {{if .GoGetImport}} |
13 |
| - <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> |
14 |
| - <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> |
15 |
| - {{end}} |
| 14 | +{{if .GoGetImport}} |
| 15 | + <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}"> |
| 16 | + <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> |
| 17 | +{{end}} |
16 | 18 |
|
17 | 19 | <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
|
18 |
| - |
19 |
| - <script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script> |
20 |
| - <script src="{{AppSubUrl}}/js/libs/jquery.are-you-sure.js"></script> |
21 | 20 | <link rel="stylesheet" href="{{AppSubUrl}}/assets/font-awesome-4.6.3/css/font-awesome.min.css">
|
22 | 21 | <link rel="stylesheet" href="{{AppSubUrl}}/assets/octicons-4.3.0/octicons.min.css">
|
23 | 22 |
|
24 |
| - {{if .RequireSimpleMDE}} |
25 |
| - <link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css"> |
26 |
| - <script src="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.js"></script> |
27 |
| - <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/addon/mode/loadmode.js"></script> |
28 |
| - <script src="{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/meta.js"></script> |
29 |
| - <script> |
30 |
| - CodeMirror.modeURL = "{{AppSubUrl}}/plugins/codemirror-5.17.0/mode/%N/%N.js"; |
31 |
| - </script> |
32 |
| - {{end}} |
33 |
| - |
34 |
| - {{if .RequireGitGraph}} |
| 23 | +{{if .RequireSimpleMDE}} |
| 24 | + <link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css"> |
| 25 | +{{end}} |
| 26 | + |
| 27 | +{{if .RequireGitGraph}} |
35 | 28 | <!-- graph -->
|
36 |
| - <script src="{{AppSubUrl}}/js/libs/gitgraph.js"></script> |
37 |
| - <script src="{{AppSubUrl}}/js/draw.js"></script> |
38 | 29 | <link rel="stylesheet" href="{{AppSubUrl}}/css/gitgraph.css">
|
39 |
| - {{end}} |
| 30 | +{{end}} |
40 | 31 |
|
41 | 32 | <!-- Stylesheet -->
|
42 | 33 | <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.2.1.min.css">
|
43 | 34 | <link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
|
44 | 35 |
|
45 |
| - <!-- JavaScript --> |
46 |
| - <script src="{{AppSubUrl}}/js/semantic-2.2.1.min.js"></script> |
47 |
| - <script src="{{AppSubUrl}}/js/index.js?v={{MD5 AppVer}}"></script> |
48 |
| - |
49 |
| - <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title> |
50 |
| - |
51 |
| - <meta name="theme-color" content="{{ThemeColorMetaTag}}"> |
| 36 | +{{if .RequireHighlightJS}} |
| 37 | + <link rel="stylesheet" href="{{AppSubUrl}}/plugins/highlight-9.6.0/github.css"> |
| 38 | +{{end}} |
| 39 | +{{if .RequireMinicolors}} |
| 40 | + <link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css"> |
| 41 | +{{end}} |
| 42 | +{{if .RequireDatetimepicker}} |
| 43 | + <link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.css"> |
| 44 | +{{end}} |
| 45 | +{{if .RequireDropzone}} |
| 46 | + <link rel="stylesheet" href="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.css"> |
| 47 | +{{end}} |
52 | 48 | </head>
|
53 | 49 | <body>
|
54 | 50 | <div class="full height">
|
|
0 commit comments