mirror of
https://gitee.com/gitea/gitea
synced 2025-12-30 20:26:34 +08:00
#2063 Ability to delete repo from admin panel
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user