summaryrefslogtreecommitdiffstats
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-05 17:39:29 -0500
committerUnknwon <u@gogs.io>2015-12-05 17:39:29 -0500
commitca8ce793d15b3991eb4766939e9a0a7cf086fa6f (patch)
tree9460c1e8b16d59d31834a4cda12f821a5372f112 /routers/repo/setting.go
parent978dc00305f1af705ae8900977529bac6fa4c72b (diff)
downloadgitea-ca8ce793d15b3991eb4766939e9a0a7cf086fa6f.tar.gz
gitea-ca8ce793d15b3991eb4766939e9a0a7cf086fa6f.zip
#2063 Ability to delete repo from admin panel
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r--routers/repo/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 424e6d5032..beda715c18 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -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())
}
}