head.tmpl 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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="_csrf" content="{{.CsrfToken}}" />
  10. {{if .GoGetImport}}
  11. <meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
  12. {{end}}
  13. <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
  14. <script src="{{AppSubUrl}}/js/jquery-1.11.2.min.js"></script>
  15. <link rel="stylesheet" href="{{AppSubUrl}}/css/font-awesome.min.css">
  16. <!-- Stylesheet -->
  17. <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic.min.css">
  18. <link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.min.css">
  19. <!-- JavaScript -->
  20. <script src="{{AppSubUrl}}/js/semantic.min.js"></script>
  21. <script src="{{AppSubUrl}}/js/gogs.js"></script>
  22. <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
  23. </head>
  24. <body>
  25. <div class="full height">
  26. <noscript>Please enable JavaScript in your browser!</noscript>
  27. <div class="following bar light">
  28. <div class="ui page grid">
  29. <div class="column">
  30. <div class="ui right floated secondary menu">
  31. {{if .ShowRegistrationButton}}
  32. <a class="view-ui item {{if .PageIsSignUp}}active{{end}}" href="{{AppSubUrl}}/user/sign_up"><i class="octicon octicon-person-add"></i> {{.i18n.Tr "register"}}</a>
  33. {{end}}
  34. <a class="view-ui item {{if .PageIsSignIn}}active{{end}}" href="{{AppSubUrl}}/user/login"><i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}</a>
  35. </div>
  36. <div class="ui secondary menu">
  37. <img class="img-15 ui image brand" src="{{AppSubUrl}}/img/favicon.png">
  38. <a class="view-ui item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}</a>
  39. <a class="view-ui item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore"}}</a>
  40. <a class="view-ui item" target="_blank" href="http://gogs.io/docs">{{.i18n.Tr "help"}}</a>
  41. <!-- <div class="item">
  42. <div class="ui icon input">
  43. <input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
  44. <i class="search icon"></i>
  45. </div>
  46. </div> -->
  47. </div>
  48. </div>
  49. </div>
  50. </div>