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.

153 lines
6.5 KiB

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