head.tmpl 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. {{if CdnMode}}
  15. <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
  16. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
  17. {{else}}
  18. <script src="{{AppSubUrl}}/js/jquery-1.11.2.min.js"></script>
  19. <link rel="stylesheet" href="{{AppSubUrl}}/css/font-awesome.min.css">
  20. {{end}}
  21. <!-- Stylesheet -->
  22. <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic.min.css">
  23. <link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.min.css">
  24. <!-- JavaScript -->
  25. <script src="{{AppSubUrl}}/js/semantic.min.js"></script>
  26. <script src="{{AppSubUrl}}/js/gogs.js"></script>
  27. <title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
  28. </head>
  29. <body>
  30. <div class="full height">
  31. <noscript>Please enable JavaScript in your browser!</noscript>
  32. <div class="following bar light">
  33. <div class="ui page grid">
  34. <div class="column">
  35. <div class="ui right floated secondary menu">
  36. {{if .ShowRegistrationButton}}
  37. <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>
  38. {{end}}
  39. <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>
  40. </div>
  41. <div class="ui secondary menu">
  42. <img class="img-15 ui image brand" src="{{AppSubUrl}}/img/favicon.png">
  43. <a class="view-ui item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}</a>
  44. <a class="view-ui item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore"}}</a>
  45. <a class="view-ui item" target="_blank" href="http://gogs.io/docs">{{.i18n.Tr "help"}}</a>
  46. <!-- <div class="item">
  47. <div class="ui icon input">
  48. <input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
  49. <i class="search icon"></i>
  50. </div>
  51. </div> -->
  52. </div>
  53. </div>
  54. </div>
  55. </div>