You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

10 years ago
  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 ignore-dirty" 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" .SignedUser.Email .ActiveCodeLives | Str2html}}</p>
  19. {{end}}
  20. {{else}}
  21. {{if .IsSendRegisterMail}}
  22. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .ActiveCodeLives | Str2html}}</p>
  23. {{else if .IsActivateFailed}}
  24. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  25. {{else}}
  26. <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.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" .}}