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.

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