#2063 Ability to delete repo from admin panel

This commit is contained in:
Unknwon 2015-12-05 17:39:29 -05:00
parent 978dc00305
commit ca8ce793d1
10 changed files with 52 additions and 7 deletions

View file

@ -185,6 +185,8 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
return
}
log.Trace("Repository deleted: %s/%s", ctx.Repo.Owner.Name, repo.Name)
ctx.Flash.Success(ctx.Tr("repo.settings.deletion_success"))
ctx.Redirect(ctx.Repo.Owner.DashboardLink())
}
}