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.

36 lines
1.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container">
  4. <form action="/user/activate" method="post" class="form-horizontal card" id="login-card">
  5. {{.CsrfTokenHtml}}
  6. <h3>Activate Your Account</h3>
  7. {{if .IsActivatePage}}
  8. {{if .ServiceNotEnabled}}
  9. <p>Sorry, Register Mail Confirmation has been disabled.</p>
  10. {{else if .ResendLimited}}
  11. <p>Sorry, you are sending an activation e-mail too frequently. Please wait 3 minutes.</p>
  12. {{else}}
  13. <p>A new confirmation e-mail has been sent to <b>{{.SignedUser.Email}}</b>, please check your inbox within the next {{.Hours}} hours to complete your registration.</p>
  14. <hr/>
  15. <a href="http://{{Mail2Domain .SignedUser.Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
  16. {{end}}
  17. {{else}}
  18. {{if .IsSendRegisterMail}}
  19. <p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within the next {{.Hours}} hours to complete your registration.</p>
  20. <hr/>
  21. <a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
  22. {{else if .IsActivateFailed}}
  23. <p>Sorry, your confirmation code has exipired or not valid.</p>
  24. {{else}}
  25. <p>Hi, {{.SignedUser.Name}}, you have an unconfirmed email address(<b>{{.SignedUser.Email}}</b>). If you haven't received a confirmation e-mail or need to resend a new one, please click on the button below.</p>
  26. <hr/>
  27. <div class="form-group">
  28. <div class="col-md-offset-4 col-md-6">
  29. <button type="submit" class="btn btn-lg btn-primary">Click here to resend your activation e-mail</button>
  30. </div>
  31. </div>
  32. {{end}}
  33. {{end}}
  34. </form>
  35. </div>
  36. {{template "base/footer" .}}