diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 1c7c60c7b..75ea7fcc2 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -264,6 +264,7 @@ settings.delete_desc = Once you delete a repository, there is no going back. Ple settings.update_settings_success = Repository options has been successfully updated. settings.transfer_owner = New Owner settings.make_transfer = Make Transfer +settings.transfer_succeed = Repository ownership has been successfully transferred. settings.confirm_delete = Confirm Deletion settings.add_collaborator = Add New Collaborator settings.add_collaborator_success = New collaborator has been added. diff --git a/conf/locale/locale_zh-CN.ini b/conf/locale/locale_zh-CN.ini index 957d9b4dc..606e4c989 100644 --- a/conf/locale/locale_zh-CN.ini +++ b/conf/locale/locale_zh-CN.ini @@ -264,6 +264,7 @@ settings.delete_desc = 删除仓库操作不可逆转,请三思而后行。 settings.update_settings_success = 仓库设置更新成功! settings.transfer_owner = 新拥有者 settings.make_transfer = 确认转移仓库 +settings.transfer_succeed = 仓库所有权转移成功! settings.confirm_delete = 确认删除仓库 settings.add_collaborator = 增加新的协作者 settings.add_collaborator_success = 成功添加新的协作者! diff --git a/routers/repo/setting.go b/routers/repo/setting.go index b30de91a3..62f2dbf53 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -121,6 +121,7 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) { return } log.Trace("Repository transfered: %s/%s -> %s", ctx.Repo.Owner.Name, ctx.Repo.Repository.Name, newOwner) + ctx.Flash.Success(ctx.Tr("repo.settings.transfer_succeed")) ctx.Redirect("/") case "delete": if ctx.Repo.Repository.Name != form.RepoName { diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 2f9bbc4ed..a9326fa6b 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -3,6 +3,7 @@ {{template "user/dashboard/nav" .}}