| @@ -768,6 +768,7 @@ cloudbrain2 = cloudbrain2 | |||||
| cloudbrain_selection = select cloudbrain | cloudbrain_selection = select cloudbrain | ||||
| cloudbrain_platform_selection = Select the cloudbrain platform you want to use: | cloudbrain_platform_selection = Select the cloudbrain platform you want to use: | ||||
| confirm_choice = confirm | confirm_choice = confirm | ||||
| cloudbran1_tips = Only data in zip format can create cloudbrain tasks | |||||
| template.items = Template Items | template.items = Template Items | ||||
| template.git_content = Git Content (Default Branch) | template.git_content = Git Content (Default Branch) | ||||
| @@ -770,6 +770,7 @@ cloudbrain2=云脑2 | |||||
| cloudbrain_selection=云脑选择 | cloudbrain_selection=云脑选择 | ||||
| cloudbrain_platform_selection=选择您准备使用的云脑平台: | cloudbrain_platform_selection=选择您准备使用的云脑平台: | ||||
| confirm_choice=确定 | confirm_choice=确定 | ||||
| cloudbran1_tips=只有zip格式的数据集才能发起云脑任务 | |||||
| template.items=模板选项 | template.items=模板选项 | ||||
| template.git_content=Git数据(默认分支) | template.git_content=Git数据(默认分支) | ||||
| @@ -90,23 +90,12 @@ func ProfilePost(ctx *context.Context, form auth.UpdateProfileForm) { | |||||
| } | } | ||||
| ctx.User.FullName = form.FullName | ctx.User.FullName = form.FullName | ||||
| ctx.User.Email = form.Email | |||||
| ctx.User.KeepEmailPrivate = form.KeepEmailPrivate | ctx.User.KeepEmailPrivate = form.KeepEmailPrivate | ||||
| ctx.User.Website = form.Website | ctx.User.Website = form.Website | ||||
| ctx.User.Location = form.Location | ctx.User.Location = form.Location | ||||
| ctx.User.Language = form.Language | ctx.User.Language = form.Language | ||||
| ctx.User.Description = form.Description | ctx.User.Description = form.Description | ||||
| isUsed, err := models.IsEmailUsed(form.Email) | |||||
| if err != nil { | |||||
| ctx.ServerError("IsEmailUsed", err) | |||||
| return | |||||
| } | |||||
| if isUsed { | |||||
| ctx.Flash.Error(ctx.Tr("form.email_been_used")) | |||||
| ctx.Redirect(setting.AppSubURL + "/user/settings") | |||||
| return | |||||
| } | |||||
| if err := models.UpdateUserSetting(ctx.User); err != nil { | if err := models.UpdateUserSetting(ctx.User); err != nil { | ||||
| if _, ok := err.(models.ErrEmailAlreadyUsed); ok { | if _, ok := err.(models.ErrEmailAlreadyUsed); ok { | ||||
| @@ -23,7 +23,8 @@ | |||||
| </div> | </div> | ||||
| <div class="required field {{if .Err_Email}}error{{end}}"> | <div class="required field {{if .Err_Email}}error{{end}}"> | ||||
| <label for="email">{{.i18n.Tr "email"}}</label> | <label for="email">{{.i18n.Tr "email"}}</label> | ||||
| <input id="email" name="email" disabled value="{{.SignedUser.Email}}"> | |||||
| <input type="hidden" id="email" name="email" value="{{.SignedUser.Email}}" > | |||||
| <input disabled value="{{.SignedUser.Email}}"> | |||||
| </div> | </div> | ||||
| <div class="inline field"> | <div class="inline field"> | ||||
| <div class="ui checkbox" id="keep-email-private"> | <div class="ui checkbox" id="keep-email-private"> | ||||
| @@ -1,5 +1,8 @@ | |||||
| <template> | <template> | ||||
| <div class="dropzone-wrapper dataset-files"> | <div class="dropzone-wrapper dataset-files"> | ||||
| <div class="ui pointing below red basic label"> | |||||
| <i class="icon info circle"></i>只有zip格式的数据集才能发起云脑任务 | |||||
| </div> | |||||
| <div | <div | ||||
| id="dataset" | id="dataset" | ||||
| class="dropzone" | class="dropzone" | ||||