home.tmpl 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {{template "base/head" .}}
  2. <div id="home-div">
  3. <div id="home-header-div" class="ui stackable middle very relaxed page grid">
  4. <div id="home-logo-div">
  5. <img id="home-logo-img" src="{{AppSubURL}}/img/notabug-lg.png" alt="logo" />
  6. </div>
  7. <div id="home-login-div">
  8. <h3 id="home-title-h2">
  9. <span id="home-title-span">{</span>
  10. <span id="home-title-l-span">'NotABug.org': </span>
  11. <span id="home-title-r-span">&quot;Free&nbsp;code&nbsp;hosting&quot;<span>
  12. <span id="home-title-span">}</span>
  13. </h3>
  14. <form id="home-login-form" action="{{AppSubURL}}/user/login" method="post">
  15. <input name="from" type="hidden" value="home">
  16. {{.CsrfTokenHtml}}
  17. <p>
  18. <label for="user_name" class="home-login-label">User:</label>
  19. <input id="user_name" name="user_name" autofocus required placeholder="{{.i18n.Tr "home.uname_holder"}}">
  20. </p><p>
  21. <label for="password" class="home-login-label">Pass:</label>
  22. <input id="password" name="password" type="password" required placeholder="{{.i18n.Tr "home.password_holder"}}"/>
  23. <button class="home-login-btn">{{.i18n.Tr "sign_in"}}</button>
  24. {{if .ShowRegistrationButton}}
  25. <span class="home-login-span">or</span>
  26. <a href="{{AppSubURL}}/user/sign_up"><button class="home-login-btn">{{.i18n.Tr "sign_up"}}</button></a>
  27. {{end}}
  28. </p>
  29. </form>
  30. </div>
  31. </div>
  32. <div id="home-footer-div" class="ui middle very relaxed page grid">
  33. <div id="home-footer-l-div">
  34. <img src="{{AppSubURL}}/img/hack.png" alt="peers-logo" width="52px" />
  35. <b>Peers</b>
  36. <p>NotABug.org is a <a href="http://peers.community">Peers Community</a> project</p>
  37. </div>
  38. <div id="home-footer-r-div">
  39. <img src="{{AppSubURL}}/img/gogs-lg.png" alt="gogs-logo" width="52px" />
  40. <b>Powered by gogs</b>
  41. <p>NotABug.org is powered by a <a href="{{AppSubURL}}/hp/gogs/">liberated</a> version of <a href="http://gogs.io">gogs</a></p>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "base/footer" .}}