You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

217 lines
9.4 KiB

10 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head data-suburl="{{AppSubUrl}}">
  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}}">
  8. <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" />
  9. <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}" />
  10. <meta name="keywords" content="{{MetaKeywords}}">
  11. <meta name="referrer" content="no-referrer" />
  12. <meta name="_csrf" content="{{.CsrfToken}}" />
  13. <meta name="_suburl" content="{{AppSubUrl}}" />
  14. {{if .IsSigned}}
  15. <meta name="_uid" content="{{.SignedUser.ID}}" />
  16. {{end}}
  17. {{if .ContextUser}}
  18. <meta name="_context_uid" content="{{.ContextUser.ID}}" />
  19. {{end}}
  20. {{if .GoGetImport}}
  21. <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
  22. <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
  23. {{end}}
  24. <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
  25. <link rel="preload" href="{{AppSubUrl}}/assets/font-awesome-4.6.3/css/font-awesome.min.css" as="style" onload="this.rel='stylesheet'">
  26. <noscript><link rel="stylesheet" href="{{AppSubUrl}}/assets/font-awesome-4.6.3/css/font-awesome.min.css"></noscript>
  27. <link rel="stylesheet" href="{{AppSubUrl}}/assets/octicons-4.3.0/octicons.min.css">
  28. {{if .RequireSimpleMDE}}
  29. <link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.1/simplemde.min.css">
  30. {{end}}
  31. {{if .RequireGitGraph}}
  32. <!-- graph -->
  33. <link rel="stylesheet" href="{{AppSubUrl}}/css/gitgraph.css">
  34. {{end}}
  35. <!-- Stylesheet -->
  36. <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.2.1.min.css">
  37. <link rel="stylesheet" href="{{AppSubUrl}}/css/index.css?v={{MD5 AppVer}}">
  38. {{if .RequireHighlightJS}}
  39. <link rel="stylesheet" href="{{AppSubUrl}}/plugins/highlight-9.11.0/github.css">
  40. {{end}}
  41. {{if .RequireMinicolors}}
  42. <link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">
  43. {{end}}
  44. {{if .RequireDatetimepicker}}
  45. <link rel="stylesheet" href="{{AppSubUrl}}/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.css">
  46. {{end}}
  47. {{if .RequireDropzone}}
  48. <link rel="stylesheet" href="{{AppSubUrl}}/plugins/dropzone-4.2.0/dropzone.css">
  49. {{end}}
  50. <style class="list-search-style"></style>
  51. <script src="{{AppSubUrl}}/js/libs/loadCSS.min.js"></script>
  52. <script src="{{AppSubUrl}}/js/libs/cssrelpreload.min.js"></script>
  53. {{if .PageIsUserProfile}}
  54. <meta property="og:title" content="{{.Owner.Name}}" />
  55. <meta property="og:type" content="profile" />
  56. <meta property="og:image" content="{{.Owner.AvatarLink}}" />
  57. <meta property="og:url" content="{{.Owner.HTMLURL}}" />
  58. <meta property="og:site_name" content="{{AppName}}" />
  59. {{else if .Repository}}
  60. <meta property="og:title" content="{{.Repository.Name}}" />
  61. <meta property="og:type" content="object" />
  62. <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
  63. <meta property="og:url" content="{{.Repository.HTMLURL}}" />
  64. {{if .Repository.Description}}
  65. <meta property="og:description" content="{{.Repository.Description}}" />
  66. {{end}}
  67. <meta property="og:site_name" content="{{AppName}}" />
  68. {{else}}
  69. <meta property="og:title" content="{{AppName}}">
  70. <meta property="og:type" content="website" />
  71. <meta property="og:image" content="{{AppSubUrl}}/img/gitea-lg.png" />
  72. <meta property="og:url" content="{{AppUrl}}" />
  73. <meta property="og:description" content="{{MetaDescription}}">
  74. {{end}}
  75. </head>
  76. <body>
  77. <div class="full height">
  78. <noscript>Please enable JavaScript in your browser!</noscript>
  79. {{if not .PageIsInstall}}
  80. <div class="following bar light">
  81. <div class="ui container">
  82. <div class="ui grid">
  83. <div class="column">
  84. <div class="ui top secondary menu">
  85. <a class="item brand" href="{{AppSubUrl}}/">
  86. <img class="ui mini image" src="{{AppSubUrl}}/img/favicon.png">
  87. </a>
  88. {{if .IsSigned}}
  89. <a class="item{{if .PageIsDashboard}} active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
  90. <a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
  91. <a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
  92. {{else}}
  93. <a class="item{{if .PageIsHome}} active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
  94. {{end}}
  95. <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
  96. {{/*<div class="item">
  97. <div class="ui icon input">
  98. <input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
  99. <i class="search icon"></i>
  100. </div>
  101. </div>*/}}
  102. {{if .IsSigned}}
  103. <div class="right menu">
  104. <a href="{{AppSubUrl}}/notifications" class="ui head link jump item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
  105. <span class="text">
  106. <i class="octicon octicon-inbox"><span class="sr-only">{{.i18n.Tr "notifications"}}</span></i>
  107. {{if .NotificationUnreadCount}}
  108. <span class="ui red label">
  109. {{.NotificationUnreadCount}}
  110. </span>
  111. {{end}}
  112. </span>
  113. </a>
  114. <div class="ui dropdown head link jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted">
  115. <span class="text">
  116. <i class="octicon octicon-plus"><span class="sr-only">{{.i18n.Tr "create_new"}}</span></i>
  117. <i class="octicon octicon-triangle-down"></i>
  118. </span>
  119. <div class="menu">
  120. <a class="item" href="{{AppSubUrl}}/repo/create">
  121. <i class="octicon octicon-plus"></i> {{.i18n.Tr "new_repo"}}
  122. </a>
  123. <a class="item" href="{{AppSubUrl}}/repo/migrate">
  124. <i class="octicon octicon-repo-clone"></i> {{.i18n.Tr "new_migrate"}}
  125. </a>
  126. {{if .SignedUser.CanCreateOrganization}}
  127. <a class="item" href="{{AppSubUrl}}/org/create">
  128. <i class="octicon octicon-organization"></i> {{.i18n.Tr "new_org"}}
  129. </a>
  130. {{end}}
  131. </div><!-- end content create new menu -->
  132. </div><!-- end dropdown menu create new -->
  133. <div class="ui dropdown head link jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted">
  134. <span class="text avatar">
  135. <img class="ui small rounded image" src="{{.SignedUser.RelAvatarLink}}">
  136. <span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span>
  137. <i class="octicon octicon-triangle-down" tabindex="-1"></i>
  138. </span>
  139. <div class="menu" tabindex="-1">
  140. <div class="ui header">
  141. {{.i18n.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
  142. </div>
  143. <div class="divider"></div>
  144. <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
  145. <i class="octicon octicon-person"></i>
  146. {{.i18n.Tr "your_profile"}}<!-- Your profile -->
  147. </a>
  148. <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
  149. <i class="octicon octicon-star"></i>
  150. {{.i18n.Tr "your_starred"}}
  151. </a>
  152. <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
  153. <i class="octicon octicon-settings"></i>
  154. {{.i18n.Tr "your_settings"}}<!-- Your settings -->
  155. </a>
  156. <a class="item" target="_blank" rel="noopener" href="https://docs.gitea.io" rel="noreferrer">
  157. <i class="octicon octicon-question"></i>
  158. {{.i18n.Tr "help"}}<!-- Help -->
  159. </a>
  160. {{if .IsAdmin}}
  161. <div class="divider"></div>
  162. <a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin">
  163. <i class="icon settings"></i>
  164. {{.i18n.Tr "admin_panel"}}<!-- Admin Panel -->
  165. </a>
  166. {{end}}
  167. <div class="divider"></div>
  168. <a class="item" href="{{AppSubUrl}}/user/logout">
  169. <i class="octicon octicon-sign-out"></i>
  170. {{.i18n.Tr "sign_out"}}<!-- Sign Out -->
  171. </a>
  172. </div><!-- end content avatar menu -->
  173. </div><!-- end dropdown avatar menu -->
  174. </div><!-- end signed user right menu -->
  175. {{else}}
  176. <a class="item" target="_blank" rel="noopener" href="https://docs.gitea.io" rel="noreferrer">{{.i18n.Tr "help"}}</a>
  177. <div class="right menu">
  178. {{if .ShowRegistrationButton}}
  179. <a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
  180. <i class="octicon octicon-person"></i> {{.i18n.Tr "register"}}
  181. </a>
  182. {{end}}
  183. <a class="item{{if .PageIsSignIn}} active{{end}}" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">
  184. <i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}
  185. </a>
  186. </div><!-- end anonymous right menu -->
  187. {{end}}
  188. </div><!-- end top menu -->
  189. </div><!-- end column -->
  190. </div><!-- end grid -->
  191. </div><!-- end container -->
  192. </div><!-- end bar -->
  193. {{end}}
  194. {{/*
  195. </div>
  196. </body>
  197. </html>
  198. */}}