fix bugs caused by #3929 (#3999)

tokarchuk/v1.17
Lunny Xiao 7 years ago committed by GitHub
parent 71a8fe3e7c
commit 60d95a0b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/repo/webhook.go
  2. 12
      templates/org/settings/hook_new.tmpl
  3. 2
      templates/org/settings/hooks.tmpl

@ -25,7 +25,7 @@ import (
const ( const (
tplHooks base.TplName = "repo/settings/webhook/base" tplHooks base.TplName = "repo/settings/webhook/base"
tplHookNew base.TplName = "repo/settings/webhook/new" 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 // Webhooks render web hooks list page

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

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

Loading…
Cancel
Save