We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b4009 commit 62461dcCopy full SHA for 62461dc
routers/web/repo/webhook_custom.go
@@ -32,6 +32,7 @@ func CustomHooksNewPost(ctx *context.Context) {
32
ctx.ServerError("getOrgRepoCtx", err)
33
return
34
}
35
+ ctx.Data["BaseLink"] = orCtx.LinkNew
36
37
hookType, isCustom := checkHookType(ctx)
38
if !isCustom {
templates/repo/settings/webhook/new.tmpl
@@ -29,8 +29,8 @@
29
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
30
{{else if eq .HookType "packagist"}}
31
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/packagist.png">
- {{else}}
- <img width="26" height="26" src="./image">{{.Label}}
+ {{else if eq .HookType "custom"}}
+ <img width="26" height="26" src="{{$.BaseLink}}/{{.CustomHook.ID}}/image">
{{end}}
</div>
</h4>
0 commit comments