activate.tmpl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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" .SignedUser.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" .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" .}}