(c *context.Context)
| 656 | } |
| 657 | |
| 658 | func SettingsDeployKeys(c *context.Context) { |
| 659 | c.Data["Title"] = c.Tr("repo.settings.deploy_keys") |
| 660 | c.Data["PageIsSettingsKeys"] = true |
| 661 | |
| 662 | keys, err := database.ListDeployKeys(c.Repo.Repository.ID) |
| 663 | if err != nil { |
| 664 | c.Error(err, "list deploy keys") |
| 665 | return |
| 666 | } |
| 667 | c.Data["Deploykeys"] = keys |
| 668 | |
| 669 | c.Success(tmplRepoSettingsDeployKeys) |
| 670 | } |
| 671 | |
| 672 | func SettingsDeployKeysPost(c *context.Context, f form.AddSSHKey) { |
| 673 | c.Data["Title"] = c.Tr("repo.settings.deploy_keys") |
nothing calls this directly
no test coverage detected