@@ -389,9 +389,12 @@ authorize_application_created_by = This application was created by %s. | |||||
authorize_application_description = If you grant the access, it will be able to access and write to all your account information, including private repos and organisations. | authorize_application_description = If you grant the access, it will be able to access and write to all your account information, including private repos and organisations. | ||||
authorize_title = Authorize "%s" to access your account? | authorize_title = Authorize "%s" to access your account? | ||||
authorization_failed = Authorization failed | authorization_failed = Authorization failed | ||||
authorization_failed_desc = The authorization failed because we detected an invalid request. Please contact the maintainer of the app you've tried to authorize. | |||||
authorization_failed_desc = The authorization failed because we detected an invalid request. Please contact the maintainer of the app you have tried to authorize. | |||||
disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator. | disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator. | ||||
sspi_auth_failed = SSPI authentication failed | sspi_auth_failed = SSPI authentication failed | ||||
change_email = Change email | |||||
change_email_address = Change email address | |||||
new_email_address = New email address | |||||
[phone] | [phone] | ||||
format_err=The format of phone number is wrong. | format_err=The format of phone number is wrong. | ||||
query_err=Fail to query phone number, please try again later. | query_err=Fail to query phone number, please try again later. | ||||
@@ -396,6 +396,9 @@ authorization_failed=授权失败 | |||||
authorization_failed_desc=授权失败,这是一个无效的请求。请联系尝试授权应用的管理员。 | authorization_failed_desc=授权失败,这是一个无效的请求。请联系尝试授权应用的管理员。 | ||||
disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator. | disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator. | ||||
sspi_auth_failed=SSPI 认证失败 | sspi_auth_failed=SSPI 认证失败 | ||||
change_email=修改邮箱 | |||||
change_email_address=修改邮箱地址 | |||||
new_email_address=新邮箱地址 | |||||
[phone] | [phone] | ||||
format_err=手机号格式错误。 | format_err=手机号格式错误。 | ||||
query_err=查询手机号失败,请稍后再试。 | query_err=查询手机号失败,请稍后再试。 | ||||
@@ -26,7 +26,7 @@ | |||||
<p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p> | <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p> | ||||
<div class="ui divider"></div> | <div class="ui divider"></div> | ||||
<div class="text right"> | <div class="text right"> | ||||
<button type="button" class="ui blue button change">修改邮箱</button> | |||||
<button type="button" class="ui blue button change">{{.i18n.Tr "auth.change_email"}}</button> | |||||
<button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button> | <button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button> | ||||
</div> | </div> | ||||
{{end}} | {{end}} | ||||
@@ -38,7 +38,7 @@ | |||||
<div> | <div> | ||||
<div class="ui modal chang-email"> | <div class="ui modal chang-email"> | ||||
<div class="header" style="padding: 1rem;background-color: rgba(240, 240, 240, 100);"> | <div class="header" style="padding: 1rem;background-color: rgba(240, 240, 240, 100);"> | ||||
<h4>修改邮箱地址</h4> | |||||
<h4>{{.i18n.Tr "auth.change_email_address"}}</h4> | |||||
</div> | </div> | ||||
<form id="formId" action="{{AppSubUrl}}/user/update_email" method="POST" class="ui form"> | <form id="formId" action="{{AppSubUrl}}/user/update_email" method="POST" class="ui form"> | ||||
<div class="content content-padding"> | <div class="content content-padding"> | ||||
@@ -46,13 +46,13 @@ | |||||
</div> | </div> | ||||
{{$.CsrfTokenHtml}} | {{$.CsrfTokenHtml}} | ||||
<div class="inline required field"> | <div class="inline required field"> | ||||
<label>新邮箱地址</label> | |||||
<label>{{.i18n.Tr "auth.new_email_address"}}</label> | |||||
<input style="width: 80%;" id="label" name="NewEmail" maxlength="255" value="{{.SignedUser.Email}}"> | <input style="width: 80%;" id="label" name="NewEmail" maxlength="255" value="{{.SignedUser.Email}}"> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="center actions"> | <div class="center actions"> | ||||
<button class="ui green button">确定</button> | |||||
<div class="ui deny button">取消</div> | |||||
<button class="ui green button">{{.i18n.Tr "repo.confirm_choice"}}</button> | |||||
<div class="ui deny button">{{.i18n.Tr "cancel"}}</div> | |||||
</div> | </div> | ||||
</form> | </form> | ||||
</div> | </div> | ||||