mirror of https://github.com/gogits/gogs.git
Unknwon
11 years ago
16 changed files with 640 additions and 617 deletions
@ -1,5 +0,0 @@
|
||||
{ |
||||
"language.fileExtensions": { |
||||
"tmpl": "html" |
||||
} |
||||
} |
@ -1,36 +1,39 @@
|
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div id="body" class="container"> |
||||
<form action="/user/activate" method="post" class="form-horizontal card" id="login-card"> |
||||
{{template "ng/base/head" .}} |
||||
{{template "ng/base/header" .}} |
||||
<div id="sign-wrapper"> |
||||
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/activate" method="post"> |
||||
{{.CsrfTokenHtml}} |
||||
<h3>Activate Your Account</h3> |
||||
<div class="panel-header"> |
||||
<h2>{{.i18n.Tr "auth.active_your_account"}}</h2> |
||||
</div> |
||||
<div class="panel-content"> |
||||
{{if .IsActivatePage}} |
||||
{{if .ServiceNotEnabled}} |
||||
<p>Sorry, Register Mail Confirmation has been disabled.</p> |
||||
<p>{{.i18n.Tr "auth.disable_register_mail"}}</p> |
||||
{{else if .ResendLimited}} |
||||
<p>Sorry, you are sending an activation e-mail too frequently. Please wait 3 minutes.</p> |
||||
<p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p> |
||||
{{else}} |
||||
<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> |
||||
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}</p> |
||||
<hr/> |
||||
<a href="http://{{Mail2Domain .SignedUser.Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a> |
||||
<label></label> |
||||
<a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a> |
||||
{{end}} |
||||
{{else}} |
||||
{{if .IsSendRegisterMail}} |
||||
<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> |
||||
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p> |
||||
<hr/> |
||||
<a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a> |
||||
<label></label> |
||||
<a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a> |
||||
{{else if .IsActivateFailed}} |
||||
<p>Sorry, your confirmation code has exipired or not valid.</p> |
||||
<p>{{.i18n.Tr "auth.invalid_code"}}</p> |
||||
{{else}} |
||||
<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> |
||||
<p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p> |
||||
<hr/> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<button type="submit" class="btn btn-lg btn-primary">Click here to resend your activation e-mail</button> |
||||
</div> |
||||
</div> |
||||
<label></label> |
||||
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.resend_mail"}}</button> |
||||
{{end}} |
||||
{{end}} |
||||
</div> |
||||
</form> |
||||
</div> |
||||
{{template "base/footer" .}} |
||||
{{template "ng/base/footer" .}} |
||||
|
@ -1,32 +1,32 @@
|
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div id="body" class="container"> |
||||
<form action="/user/forget_password" method="post" class="form-horizontal card" id="login-card"> |
||||
{{template "ng/base/head" .}} |
||||
{{template "ng/base/header" .}} |
||||
<div id="sign-wrapper"> |
||||
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/forget_password" method="post"> |
||||
{{.CsrfTokenHtml}} |
||||
<h3>Reset Your Password</h3> |
||||
{{template "base/alert" .}} |
||||
<div class="panel-header"> |
||||
<h2>{{.i18n.Tr "auth.forgot_password"}}</h2> |
||||
</div> |
||||
<div class="panel-content"> |
||||
{{template "ng/base/alert" .}} |
||||
{{if .IsResetSent}} |
||||
<p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours.</p> |
||||
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p> |
||||
<hr/> |
||||
<a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a> |
||||
<label></label> |
||||
<a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a> |
||||
{{else if .IsResetRequest}} |
||||
<div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}"> |
||||
<label class="col-md-3 control-label">Email: </label> |
||||
<div class="col-md-7"> |
||||
<input name="email" class="form-control" placeholder="Type your e-mail address" required="required"> |
||||
</div> |
||||
<div class="field"> |
||||
<label class="req" for="email">{{.i18n.Tr "email"}}</label> |
||||
<input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.email}}"required/> |
||||
</div> |
||||
<hr/> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<button type="submit" class="btn btn-lg btn-primary">Click here to send resend confirmation e-mail</button> |
||||
</div> |
||||
</div> |
||||
<label></label> |
||||
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.send_reset_mail"}}</button> |
||||
{{else if .IsResetDisable}} |
||||
<p>Sorry, mail service is not enabled.</p> |
||||
<p>{{.i18n.Tr "auth.disable_register_mail"}}</p> |
||||
{{else if .ResendLimited}} |
||||
<p>Sorry, you are sending an e-mail too frequently, please wait another 3 minutes and try again.</p> |
||||
<p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p> |
||||
{{end}} |
||||
</div> |
||||
</form> |
||||
</div> |
||||
{{template "base/footer" .}} |
||||
{{template "ng/base/footer" .}} |
||||
|
@ -1,26 +1,25 @@
|
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
<div id="body" class="container"> |
||||
<form action="/user/reset_password?code={{.Code}}" method="post" class="form-horizontal card" id="login-card"> |
||||
{{template "ng/base/head" .}} |
||||
{{template "ng/base/header" .}} |
||||
<div id="sign-wrapper"> |
||||
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/reset_password?code={{.Code}}" method="post"> |
||||
{{.CsrfTokenHtml}} |
||||
<h3>Reset Your Pasword</h3> |
||||
{{template "base/alert" .}} |
||||
{{if .IsResetForm}} |
||||
<div class="form-group"> |
||||
<label class="col-md-4 control-label">Password: </label> |
||||
<div class="col-md-6"> |
||||
<input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required"> |
||||
<div class="panel-header"> |
||||
<h2>{{.i18n.Tr "auth.reset_password"}}</h2> |
||||
</div> |
||||
<div class="panel-content"> |
||||
{{template "ng/base/alert" .}} |
||||
{{if .IsResetForm}} |
||||
<div class="field"> |
||||
<label class="req" for="password">{{.i18n.Tr "password"}}</label> |
||||
<input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/> |
||||
</div> |
||||
<hr/> |
||||
<div class="form-group"> |
||||
<div class="col-md-offset-4 col-md-6"> |
||||
<button type="submit" class="btn btn-lg btn-primary">Click here to reset your password</button> |
||||
</div> |
||||
</div> |
||||
<label></label> |
||||
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.reset_password_helper"}}</button> |
||||
{{else}} |
||||
<p>Sorry, your confirmation code has expired or is not valid.</p> |
||||
<p>{{.i18n.Tr "auth.invalid_code"}}</p> |
||||
{{end}} |
||||
</div> |
||||
</form> |
||||
</div> |
||||
{{template "base/footer" .}} |
||||
{{template "ng/base/footer" .}} |
||||
|
Loading…
Reference in new issue