activate.tmpl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{template "base/head" .}}
  2. <div class="user activate home-main gradient-bg">
  3. <div class="ui middle very relaxed page grid">
  4. <div class="column">
  5. <form class="ui form" action="{{AppSubURL}}/user/activate" method="post">
  6. {{.CSRFTokenHTML}}
  7. <h3 class="ui center">
  8. <img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
  9. </h3>
  10. <h2 class="ui center">
  11. {{.i18n.Tr "auth.active_your_account"}}
  12. </h2>
  13. <div class="ui attached segment prompt box">
  14. {{template "base/alert" .}}
  15. {{if .IsActivatePage}}
  16. {{if .ServiceNotEnabled}}
  17. <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
  18. {{else if .ResendLimited}}
  19. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  20. {{else}}
  21. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .LoggedUser.Email .Hours | Str2HTML}}</p>
  22. {{end}}
  23. {{else}}
  24. {{if .IsSendRegisterMail}}
  25. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2HTML}}</p>
  26. {{else if .IsActivateFailed}}
  27. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  28. {{else}}
  29. <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .LoggedUser.Name .LoggedUser.Email | Str2HTML}}</p>
  30. <div class="text center">
  31. <button class="ui blue basic button">{{.i18n.Tr "auth.resend_mail"}}</button>
  32. </div>
  33. {{end}}
  34. {{end}}
  35. </div>
  36. </form>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}