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.

39 lines
1.8 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="sign-wrapper">
  4. <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="{{AppSubUrl}}/user/activate" method="post">
  5. {{.CsrfTokenHtml}}
  6. <div class="panel-header">
  7. <h2>{{.i18n.Tr "auth.active_your_account"}}</h2>
  8. </div>
  9. <div class="panel-content">
  10. {{if .IsActivatePage}}
  11. {{if .ServiceNotEnabled}}
  12. <p>{{.i18n.Tr "auth.disable_register_mail"}}</p>
  13. {{else if .ResendLimited}}
  14. <p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  15. {{else}}
  16. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}</p>
  17. <hr/>
  18. <label></label>
  19. <a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a>
  20. {{end}}
  21. {{else}}
  22. {{if .IsSendRegisterMail}}
  23. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p>
  24. <hr/>
  25. <label></label>
  26. <a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a>
  27. {{else if .IsActivateFailed}}
  28. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  29. {{else}}
  30. <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p>
  31. <hr/>
  32. <label></label>
  33. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.resend_mail"}}</button>
  34. {{end}}
  35. {{end}}
  36. </div>
  37. </form>
  38. </div>
  39. {{template "ng/base/footer" .}}