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.

140 lines
5.8 KiB

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