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.

active.tmpl 1.9KB

123456789101112131415161718192021222324252627282930313233343536
  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 activation e-mail too frequently, please wait 3 minutes.</p>
  12. {{else}}
  13. <p>New confirmation e-mail has been sent to <b>{{.SignedUser.Email}}</b>, please check your inbox within {{.Hours}} hours to complete your registeration.</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 {{.Hours}} hours to complete your registeration.</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 been 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 botton 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 active e-mail</button>
  30. </div>
  31. </div>
  32. {{end}}
  33. {{end}}
  34. </form>
  35. </div>
  36. {{template "base/footer" .}}