Browse Source

fix bugs caused by #3929 (#3999)

for-closed-social
Lunny Xiao 6 years ago
committed by GitHub
parent
commit
60d95a0b85
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions
  1. +1
    -1
      routers/repo/webhook.go
  2. +6
    -6
      templates/org/settings/hook_new.tmpl
  3. +1
    -1
      templates/org/settings/hooks.tmpl

+ 1
- 1
routers/repo/webhook.go View File

@ -25,7 +25,7 @@ import (
const (
tplHooks base.TplName = "repo/settings/webhook/base"
tplHookNew base.TplName = "repo/settings/webhook/new"
tplOrgHookNew base.TplName = "org/settings/webhook/new"
tplOrgHookNew base.TplName = "org/settings/hook_new"
)
// Webhooks render web hooks list page

+ 6
- 6
templates/org/settings/hook_new.tmpl View File

@ -23,14 +23,14 @@
</div>
</h4>
<div class="ui attached segment">
{{template "repo/settings/hook_gitea" .}}
{{template "repo/settings/hook_gogs" .}}
{{template "repo/settings/hook_slack" .}}
{{template "repo/settings/hook_discord" .}}
{{template "repo/settings/hook_dingtalk" .}}
{{template "repo/settings/webhook/gitea" .}}
{{template "repo/settings/webhook/gogs" .}}
{{template "repo/settings/webhook/slack" .}}
{{template "repo/settings/webhook/discord" .}}
{{template "repo/settings/webhook/dingtalk" .}}
</div>
{{template "repo/settings/hook_history" .}}
{{template "repo/settings/webhook/history" .}}
</div>
</div>
</div>

+ 1
- 1
templates/org/settings/hooks.tmpl View File

@ -5,7 +5,7 @@
<div class="ui grid">
{{template "org/settings/navbar" .}}
<div class="twelve wide column content">
{{template "repo/settings/hook_list" .}}
{{template "repo/settings/webhook/list" .}}
</div>
</div>
</div>

Loading…
Cancel
Save