activate.tmpl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{template "base/head" .}}
  2. <div class="user activate">
  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. <h2 class="ui top attached header">
  8. {{.i18n.Tr "auth.active_your_account"}}
  9. </h2>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. {{if .IsActivatePage}}
  13. {{if .ServiceNotEnabled}}
  14. <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
  15. {{else if .ResendLimited}}
  16. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  17. {{else}}
  18. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .LoggedUser.Email .Hours | Str2HTML}}</p>
  19. {{end}}
  20. {{else}}
  21. {{if .IsSendRegisterMail}}
  22. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2HTML}}</p>
  23. {{else if .IsActivateFailed}}
  24. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  25. {{else}}
  26. <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .LoggedUser.Name .LoggedUser.Email | Str2HTML}}</p>
  27. <div class="ui divider"></div>
  28. <div class="text right">
  29. <button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button>
  30. </div>
  31. {{end}}
  32. {{end}}
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. {{template "base/footer" .}}