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.

157 lines
7.0 KiB

10 years ago
9 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
  1. <!DOCTYPE html>
  2. <html>
  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"/>
  6. <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gogs - Go Git Service{{end}}" />
  7. <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gogs (Go Git Service) is a painless self-hosted Git service written in Go{{end}}" />
  8. <meta name="keywords" content="go, git, self-hosted, gogs">
  9. <meta name="referrer" content="no-referrer" />
  10. <meta name="_csrf" content="{{.CsrfToken}}" />
  11. <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}}
  16. <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
  17. <script src="{{AppSubUrl}}/js/jquery-1.11.3.min.js"></script>
  18. <link rel="stylesheet" href="{{AppSubUrl}}/assets/font-awesome-4.5.0/css/font-awesome.min.css">
  19. <link rel="stylesheet" href="{{AppSubUrl}}/assets/octicons-3.5.0/octicons.css">
  20. {{if .RequireSimpleMDE}}
  21. <link rel="stylesheet" href="{{AppSubUrl}}/plugins/simplemde-1.10.0/simplemde.min.css">
  22. <script src="{{AppSubUrl}}/plugins/simplemde-1.10.0/simplemde.min.js"></script>
  23. {{end}}
  24. <!-- Stylesheet -->
  25. <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.1.8.min.css">
  26. <link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.css?v={{MD5 AppVer}}">
  27. <!-- JavaScript -->
  28. <script src="{{AppSubUrl}}/js/semantic-2.1.8.min.js"></script>
  29. <script src="{{AppSubUrl}}/js/gogs.js?v={{MD5 AppVer}}"></script>
  30. <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
  31. <meta name="theme-color" content="{{ThemeColorMetaTag}}">
  32. </head>
  33. <body>
  34. <div class="full height">
  35. <noscript>Please enable JavaScript in your browser!</noscript>
  36. {{if not .PageIsInstall}}
  37. <div class="following bar light">
  38. <div class="ui container">
  39. <div class="ui grid">
  40. <div class="column">
  41. <div class="ui top secondary menu">
  42. <a class="item brand" href="{{AppSubUrl}}/">
  43. <img class="ui mini image" src="{{AppSubUrl}}/img/favicon.png">
  44. </a>
  45. {{if .IsSigned}}
  46. <a class="item{{if .PageIsDashboard}} active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
  47. <a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
  48. <a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
  49. {{else}}
  50. <a class="item{{if .PageIsHome}} active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
  51. {{end}}
  52. <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
  53. {{/*<div class="item">
  54. <div class="ui icon input">
  55. <input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
  56. <i class="search icon"></i>
  57. </div>
  58. </div>*/}}
  59. {{if .IsSigned}}
  60. <div class="right menu">
  61. <div class="ui dropdown head link jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted">
  62. <span class="text">
  63. <i class="octicon octicon-plus"><span class="sr-only">{{.i18n.Tr "create_new"}}</span></i>
  64. <i class="octicon octicon-triangle-down"></i>
  65. </span>
  66. <div class="menu">
  67. <a class="item" href="{{AppSubUrl}}/repo/create">
  68. <i class="icon octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}
  69. </a>
  70. <a class="item" href="{{AppSubUrl}}/repo/migrate">
  71. <i class="icon octicon octicon-repo-clone"></i> {{.i18n.Tr "new_migrate"}}
  72. </a>
  73. <a class="item" href="{{AppSubUrl}}/org/create">
  74. <i class="icon octicon octicon-organization"></i> {{.i18n.Tr "new_org"}}
  75. </a>
  76. </div><!-- end content create new menu -->
  77. </div><!-- end dropdown menu create new -->
  78. <div class="ui dropdown head link jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted">
  79. <span class="text avatar">
  80. <img class="ui small rounded image" src="{{.SignedUser.AvatarLink}}">
  81. <span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span>
  82. <i class="octicon octicon-triangle-down" tabindex="-1"></i>
  83. </span>
  84. <div class="menu" tabindex="-1">
  85. <div class="ui header">
  86. {{.i18n.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
  87. </div>
  88. <div class="divider"></div>
  89. <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
  90. <i class="icon octicon octicon-person"></i>
  91. {{.i18n.Tr "your_profile"}}<!-- Your profile -->
  92. </a>
  93. <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
  94. <i class="icon octicon octicon-settings"></i>
  95. {{.i18n.Tr "your_settings"}}<!-- Your settings -->
  96. </a>
  97. <a class="item" target="_blank" href="http://gogs.io/docs" rel="noreferrer">
  98. <i class="icon octicon octicon-question"></i>
  99. {{.i18n.Tr "help"}}<!-- Help -->
  100. </a>
  101. {{if .IsAdmin}}
  102. <div class="divider"></div>
  103. <a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin">
  104. <i class="icon settings"></i>
  105. {{.i18n.Tr "admin_panel"}}<!-- Admin Panel -->
  106. </a>
  107. {{end}}
  108. <div class="divider"></div>
  109. <a class="item" href="{{AppSubUrl}}/user/logout">
  110. <i class="icon octicon octicon-sign-out"></i>
  111. {{.i18n.Tr "sign_out"}}<!-- Sign Out -->
  112. </a>
  113. </div><!-- end content avatar menu -->
  114. </div><!-- end dropdown avatar menu -->
  115. </div><!-- end signed user right menu -->
  116. {{else}}
  117. <a class="item" target="_blank" href="http://gogs.io/docs" rel="noreferrer">{{.i18n.Tr "help"}}</a>
  118. <div class="right menu">
  119. {{if .ShowRegistrationButton}}
  120. <a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
  121. <i class="icon octicon octicon-person-add"></i> {{.i18n.Tr "register"}}
  122. </a>
  123. {{end}}
  124. <a class="item{{if .PageIsSignIn}} active{{end}}" href="{{AppSubUrl}}/user/login">
  125. <i class="icon octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}
  126. </a>
  127. </div><!-- end anonymous right menu -->
  128. {{end}}
  129. </div><!-- end top menu -->
  130. </div><!-- end column -->
  131. </div><!-- end grid -->
  132. </div><!-- end container -->
  133. </div><!-- end bar -->
  134. {{end}}
  135. {{/*
  136. </div>
  137. </body>
  138. </html>
  139. */}}