activate.tmpl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <div class="ui divider"></div>
  20. <div class="text right">
  21. <a class="ui green button" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.sign_in_to_account"}}</a>
  22. </div>
  23. {{end}}
  24. {{else}}
  25. {{if .IsSendRegisterMail}}
  26. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p>
  27. <div class="ui divider"></div>
  28. <div class="text right">
  29. <a class="ui green button" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_to_account"}}</a>
  30. </div>
  31. {{else if .IsActivateFailed}}
  32. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  33. {{else}}
  34. <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p>
  35. <div class="ui divider"></div>
  36. <div class="text right">
  37. <button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button>
  38. </div>
  39. {{end}}
  40. {{end}}
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </div>
  46. {{template "base/footer" .}}