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

head.tmpl 8.2 kB

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