home.tmpl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="promo-wrapper">
  4. <div class="container clear">
  5. <div id="promo-logo" class="left">
  6. <img src="{{AppSubUrl}}/img/notabug-lg.png" alt="logo" />
  7. </div>
  8. <div id="promo-content">
  9. <h1>NotABug.org</h1>
  10. <h2>Free code hosting</h2>
  11. <form id="promo-form" action="{{AppSubUrl}}/user/login" method="post">
  12. {{.CsrfTokenHtml}}
  13. <input class="ipt ipt-large" id="username" name="uname" type="text" placeholder="{{.i18n.Tr "home.uname_holder"}}"/>
  14. <input class="ipt ipt-large" name="password" type="password" placeholder="{{.i18n.Tr "home.password_holder"}}"/>
  15. <input name="from" type="hidden" value="home">
  16. <button class="btn btn-black btn-large">{{.i18n.Tr "sign_in"}}</button>
  17. {{if .ShowRegistrationButton}}
  18. <button class="btn btn-green btn-large" id="register-button">{{.i18n.Tr "register"}}</button>
  19. {{end}}
  20. </form>
  21. </div>&nbsp;
  22. </div>
  23. </div>
  24. <div id="feature-wrapper">
  25. <div class="container clear">
  26. <div class="grid-1-2 left">
  27. <img src="{{AppSubUrl}}/img/hack.png" alt="peers-logo" width="52px" />
  28. <b>Peers</b>
  29. <p>NotABug.org is a <a href="http://peers.community">Peers Community</a> project</p>
  30. </div>
  31. <div class="grid-1-2 left">
  32. <img src="{{AppSubUrl}}/img/gogs-lg.png" alt="gogs-logo" width="52px" />
  33. <b>Powered by gogs</b>
  34. <p>NotABug.org is powered by a <a href="{{AppSubUrl}}/hp/gogs/">locally modified</a> version of <a href="http://gogs.io">gogs</a></p>
  35. </div>
  36. </div>
  37. </div>
  38. {{template "ng/base/footer" .}}