Browse Source

fix issue

pull/3275/head
zhoupzh 2 years ago
parent
commit
9911244ccc
3 changed files with 12 additions and 6 deletions
  1. +4
    -1
      options/locale/locale_en-US.ini
  2. +3
    -0
      options/locale/locale_zh-CN.ini
  3. +5
    -5
      templates/user/auth/activate.tmpl

+ 4
- 1
options/locale/locale_en-US.ini View File

@@ -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_title = Authorize "%s" to access your account?
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.
sspi_auth_failed = SSPI authentication failed
change_email = Change email
change_email_address = Change email address
new_email_address = New email address
[phone]
format_err=The format of phone number is wrong.
query_err=Fail to query phone number, please try again later.


+ 3
- 0
options/locale/locale_zh-CN.ini View File

@@ -396,6 +396,9 @@ authorization_failed=授权失败
authorization_failed_desc=授权失败,这是一个无效的请求。请联系尝试授权应用的管理员。
disable_forgot_password_mail = Account recovery is disabled. Please contact your site administrator.
sspi_auth_failed=SSPI 认证失败
change_email=修改邮箱
change_email_address=修改邮箱地址
new_email_address=新邮箱地址
[phone]
format_err=手机号格式错误。
query_err=查询手机号失败,请稍后再试。


+ 5
- 5
templates/user/auth/activate.tmpl View File

@@ -26,7 +26,7 @@
<p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p>
<div class="ui divider"></div>
<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>
</div>
{{end}}
@@ -38,7 +38,7 @@
<div>
<div class="ui modal chang-email">
<div class="header" style="padding: 1rem;background-color: rgba(240, 240, 240, 100);">
<h4>修改邮箱地址</h4>
<h4>{{.i18n.Tr "auth.change_email_address"}}</h4>
</div>
<form id="formId" action="{{AppSubUrl}}/user/update_email" method="POST" class="ui form">
<div class="content content-padding">
@@ -46,13 +46,13 @@
</div>
{{$.CsrfTokenHtml}}
<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}}">
</div>
</div>
<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>
</form>
</div>


Loading…
Cancel
Save