本站源代码
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

188 lines
7.5KB

  1. <!DOCTYPE html>
  2. <html lang="{{.Language}}">
  3. <head data-suburl="{{AppSubUrl}}">
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>{{if .Title}}{{.Title}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}</title>
  8. <link rel="manifest" href="{{AppSubUrl}}/manifest.json" crossorigin="use-credentials">
  9. <script>
  10. if ('serviceWorker' in navigator) {
  11. window.addEventListener('load', function() {
  12. navigator.serviceWorker.register('{{AppSubUrl}}/serviceworker.js').then(function(registration) {
  13. // Registration was successful
  14. console.log('ServiceWorker registration successful with scope: ', registration.scope);
  15. }, function(err) {
  16. // registration failed :(
  17. console.log('ServiceWorker registration failed: ', err);
  18. });
  19. });
  20. }
  21. </script>
  22. <meta name="theme-color" content="{{ThemeColorMetaTag}}">
  23. <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" />
  24. <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}" />
  25. <meta name="keywords" content="{{MetaKeywords}}">
  26. <meta name="referrer" content="no-referrer" />
  27. <meta name="_csrf" content="{{.CsrfToken}}" />
  28. <meta name="_suburl" content="{{AppSubUrl}}" />
  29. {{if .IsSigned}}
  30. <meta name="_uid" content="{{.SignedUser.ID}}" />
  31. {{end}}
  32. {{if .ContextUser}}
  33. <meta name="_context_uid" content="{{.ContextUser.ID}}" />
  34. {{end}}
  35. {{if .SearchLimit}}
  36. <meta name="_search_limit" content="{{.SearchLimit}}" />
  37. {{end}}
  38. {{if .GoGetImport}}
  39. <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
  40. <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
  41. {{end}}
  42. <script>
  43. {{SafeJS `/*
  44. @licstart The following is the entire license notice for the
  45. JavaScript code in this page.
  46. Copyright (c) 2016 The Gitea Authors
  47. Copyright (c) 2015 The Gogs Authors
  48. Permission is hereby granted, free of charge, to any person obtaining a copy
  49. of this software and associated documentation files (the "Software"), to deal
  50. in the Software without restriction, including without limitation the rights
  51. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  52. copies of the Software, and to permit persons to whom the Software is
  53. furnished to do so, subject to the following conditions:
  54. The above copyright notice and this permission notice shall be included in
  55. all copies or substantial portions of the Software.
  56. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  57. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  58. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  59. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  60. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  61. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  62. THE SOFTWARE.
  63. ---
  64. Licensing information for additional javascript libraries can be found at:
  65. {{StaticUrlPrefix}}/vendor/librejs.html
  66. @licend The above is the entire license notice
  67. for the JavaScript code in this page.
  68. */`}}
  69. </script>
  70. <link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png" />
  71. <link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926">
  72. <link rel="preload" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css" as="style" onload="this.rel='stylesheet'">
  73. <noscript><link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css"></noscript>
  74. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/octicons/octicons.min.css">
  75. {{if .RequireSimpleMDE}}
  76. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css">
  77. {{end}}
  78. {{if .RequireGitGraph}}
  79. <!-- graph -->
  80. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/gitgraph/gitgraph.css">
  81. {{end}}
  82. {{if .RequireTribute}}
  83. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.css">
  84. {{end}}
  85. <!-- Stylesheet -->
  86. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/semantic/semantic.min.css">
  87. <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}">
  88. <noscript>
  89. <style>
  90. .dropdown:hover > .menu { display: block; }
  91. .ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
  92. </style>
  93. </noscript>
  94. {{if .RequireHighlightJS}}
  95. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/highlight/github.css">
  96. {{end}}
  97. {{if .RequireMinicolors}}
  98. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css">
  99. {{end}}
  100. {{if .RequireDatetimepicker}}
  101. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.css">
  102. {{end}}
  103. {{if .RequireDropzone}}
  104. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.css">
  105. {{end}}
  106. {{if .EnableHeatmap}}
  107. <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.css">
  108. {{end}}
  109. <style class="list-search-style"></style>
  110. <script src="{{StaticUrlPrefix}}/vendor/plugins/promise-polyfill/polyfill.min.js"></script>
  111. <script src="{{StaticUrlPrefix}}/vendor/plugins/cssrelpreload/loadCSS.min.js"></script>
  112. <script src="{{StaticUrlPrefix}}/vendor/plugins/cssrelpreload/cssrelpreload.min.js"></script>
  113. {{if .PageIsUserProfile}}
  114. <meta property="og:title" content="{{.Owner.Name}}" />
  115. <meta property="og:type" content="profile" />
  116. <meta property="og:image" content="{{.Owner.AvatarLink}}" />
  117. <meta property="og:url" content="{{.Owner.HTMLURL}}" />
  118. {{if .Owner.Description}}
  119. <meta property="og:description" content="{{.Owner.Description}}">
  120. {{end}}
  121. {{else if .Repository}}
  122. {{if .Issue}}
  123. <meta property="og:title" content="{{.Issue.Title}}" />
  124. <meta property="og:url" content="{{.Issue.HTMLURL}}" />
  125. {{if .Issue.Content}}
  126. <meta property="og:description" content="{{.Issue.Content}}" />
  127. {{end}}
  128. {{else}}
  129. <meta property="og:title" content="{{.Repository.Name}}" />
  130. <meta property="og:url" content="{{.Repository.HTMLURL}}" />
  131. {{if .Repository.Description}}
  132. <meta property="og:description" content="{{.Repository.Description}}" />
  133. {{end}}
  134. {{end}}
  135. <meta property="og:type" content="object" />
  136. <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
  137. {{else}}
  138. <meta property="og:title" content="{{AppName}}">
  139. <meta property="og:type" content="website" />
  140. <meta property="og:image" content="{{StaticUrlPrefix}}img/gitea-lg.png" />
  141. <meta property="og:url" content="{{AppUrl}}" />
  142. <meta property="og:description" content="{{MetaDescription}}">
  143. {{end}}
  144. <meta property="og:site_name" content="{{AppName}}" />
  145. {{if .IsSigned }}
  146. {{ if ne .SignedUser.Theme "gitea" }}
  147. <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{.SignedUser.Theme}}.css">
  148. {{end}}
  149. {{else if ne DefaultTheme "gitea"}}
  150. <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{DefaultTheme}}.css">
  151. {{end}}
  152. {{template "custom/header" .}}
  153. </head>
  154. <body>
  155. {{template "custom/body_outer_pre" .}}
  156. <div class="full height">
  157. <noscript>{{.i18n.Tr "enable_javascript"}}</noscript>
  158. {{template "custom/body_inner_pre" .}}
  159. {{if not .PageIsInstall}}
  160. <div class="ui top secondary stackable main menu following bar light">
  161. {{template "base/head_navbar" .}}
  162. </div><!-- end bar -->
  163. {{end}}
  164. {{/*
  165. </div>
  166. </body>
  167. </html>
  168. */}}
上海开阖软件有限公司 沪ICP备12045867号-1