diff options
author | Unknwon <u@gogs.io> | 2015-08-20 17:11:29 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-20 17:11:29 +0800 |
commit | 062adbed8a8a9cb83cd172b5a6e232e75af89f2d (patch) | |
tree | 07a35a3c9dca8d1be54614b006b7c0487a9cdb62 /routers/repo | |
parent | 9b01a3501b8c1897a9c02bf82dcc169a20b9a51f (diff) | |
download | gitea-062adbed8a8a9cb83cd172b5a6e232e75af89f2d.tar.gz gitea-062adbed8a8a9cb83cd172b5a6e232e75af89f2d.zip |
add confirmation to delete ssh key
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/setting.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 551ba11513..61ac6deb1d 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -677,6 +677,13 @@ func SettingsDeployKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm) { ctx.Data["Title"] = ctx.Tr("repo.settings") ctx.Data["PageIsSettingsKeys"] = true + keys, err := models.ListDeployKeys(ctx.Repo.Repository.ID) + if err != nil { + ctx.Handle(500, "ListDeployKeys", err) + return + } + ctx.Data["Deploykeys"] = keys + if ctx.HasError() { ctx.HTML(200, DEPLOY_KEYS) return |