mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
new repo git hooks UI
This commit is contained in:
parent
2f2bf20aae
commit
1cb03135b7
9 changed files with 120 additions and 83 deletions
|
@ -608,7 +608,7 @@ func TriggerHook(ctx *middleware.Context) {
|
|||
models.HookQueue.AddRepoID(repo.ID)
|
||||
}
|
||||
|
||||
func GitHooks(ctx *middleware.Context) {
|
||||
func SettingsGitHooks(ctx *middleware.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.settings")
|
||||
ctx.Data["PageIsSettingsGitHooks"] = true
|
||||
|
||||
|
@ -622,7 +622,7 @@ func GitHooks(ctx *middleware.Context) {
|
|||
ctx.HTML(200, GITHOOKS)
|
||||
}
|
||||
|
||||
func GitHooksEdit(ctx *middleware.Context) {
|
||||
func SettingsGitHooksEdit(ctx *middleware.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.settings")
|
||||
ctx.Data["PageIsSettingsGitHooks"] = true
|
||||
|
||||
|
@ -640,7 +640,7 @@ func GitHooksEdit(ctx *middleware.Context) {
|
|||
ctx.HTML(200, GITHOOK_EDIT)
|
||||
}
|
||||
|
||||
func GitHooksEditPost(ctx *middleware.Context) {
|
||||
func SettingsGitHooksEditPost(ctx *middleware.Context) {
|
||||
name := ctx.Params(":name")
|
||||
hook, err := ctx.Repo.GitRepo.GetHook(name)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue