2014-03-19 07:24:02 -06:00
{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 04:44:37 -06:00
<div id="body" class="container">
<form action="/user/activate" method="post" class="form-horizontal card" id="login-card">
2014-03-22 11:44:02 -06:00
{{.CsrfTokenHtml}}
2014-03-19 07:29:58 -06:00
<h3>Activate Your Account</h3>
2014-03-19 07:24:02 -06:00
{{if .IsActivatePage}}
2014-03-19 08:46:48 -06:00
{{if .ServiceNotEnabled}}
<p>Sorry, Register Mail Confirmation has been disabled.</p>
2014-03-21 08:09:57 -06:00
{{else if .ResendLimited}}
2014-04-20 00:54:26 -06:00
<p>Sorry, you are sending an activation e-mail too frequently. Please wait 3 minutes.</p>
2014-03-19 08:46:48 -06:00
{{else}}
2014-04-20 00:54:26 -06:00
<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>
2014-03-19 10:50:44 -06:00
<hr/>
<a href="http://{{Mail2Domain .SignedUser.Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
2014-03-19 08:46:48 -06:00
{{end}}
2014-03-19 07:24:02 -06:00
{{else}}
2014-03-19 08:46:48 -06:00
{{if .IsSendRegisterMail}}
2014-04-20 00:54:26 -06:00
<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>
2014-03-19 10:50:44 -06:00
<hr/>
<a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
{{else if .IsActivateFailed}}
2014-04-20 00:54:26 -06:00
<p>Sorry, your confirmation code has exipired or not valid.</p>
2014-03-19 08:46:48 -06:00
{{else}}
2014-04-20 00:54:26 -06:00
<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>
2014-03-19 08:46:48 -06:00
<hr/>
<div class="form-group">
<div class="col-md-offset-4 col-md-6">
2014-04-20 00:54:26 -06:00
<button type="submit" class="btn btn-lg btn-primary">Click here to resend your activation e-mail</button>
2014-03-19 08:46:48 -06:00
</div>
2014-03-19 07:24:02 -06:00
</div>
2014-03-19 08:46:48 -06:00
{{end}}
2014-03-19 07:24:02 -06:00
{{end}}
</form>
</div>
2014-04-20 00:54:26 -06:00
{{template "base/footer" .}}