index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
routers
/
repo
/
setting.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2015-12-05 17:39:29 -0500
committer
Unknwon <u@gogs.io>
2015-12-05 17:39:29 -0500
commit
ca8ce793d15b3991eb4766939e9a0a7cf086fa6f
(
patch
)
tree
9460c1e8b16d59d31834a4cda12f821a5372f112
/
routers/repo/setting.go
parent
978dc00305f1af705ae8900977529bac6fa4c72b
(
diff
)
#2063 Ability to delete repo from admin panel
Diffstat
(limited to 'routers/repo/setting.go')
-rw-r--r--
routers/repo/setting.go
2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 424e6d50..beda715c 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())
}
}