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.

32 lines
1.7 KiB

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="gogs-body" class="container">
  4. <form action="/user/activate" method="get" class="form-horizontal gogs-card" id="gogs-login-card">
  5. <h3>Activate Your Account</h3>
  6. {{if .IsActivatePage}}
  7. {{if .ServiceNotEnabled}}
  8. <p>Sorry, Register Mail Confirmation has been disabled.</p>
  9. {{else}}
  10. <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>
  11. <hr/>
  12. <a href="http://{{Mail2Domain .SignedUser.Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
  13. {{end}}
  14. {{else}}
  15. {{if .IsSendRegisterMail}}
  16. <p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours to complete your registeration.</p>
  17. <hr/>
  18. <a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
  19. {{else if .IsActivateFailed}}
  20. <p>Sorry, your confirmation code has been exipired or not valid.</p>
  21. {{else}}
  22. <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>
  23. <hr/>
  24. <div class="form-group">
  25. <div class="col-md-offset-4 col-md-6">
  26. <button type="submit" class="btn btn-lg btn-primary">Click here to resend your active e-mail</button>
  27. </div>
  28. </div>
  29. {{end}}
  30. {{end}}
  31. </form>
  32. </div>
  33. {{template "base/footer" .}}