Add success message after transfer repository #481

This commit is contained in:
Unknwon 2014-09-17 14:52:46 -04:00
parent 8a09256941
commit a596388ebf
4 changed files with 4 additions and 0 deletions

View file

@ -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 {