Skip to content

Commit 62461dc

Browse files
committed
Fix image src
Signed-off-by: jolheiser <[email protected]>
1 parent f6b4009 commit 62461dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

routers/web/repo/webhook_custom.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func CustomHooksNewPost(ctx *context.Context) {
3232
ctx.ServerError("getOrgRepoCtx", err)
3333
return
3434
}
35+
ctx.Data["BaseLink"] = orCtx.LinkNew
3536

3637
hookType, isCustom := checkHookType(ctx)
3738
if !isCustom {

templates/repo/settings/webhook/new.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
3030
{{else if eq .HookType "packagist"}}
3131
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/packagist.png">
32-
{{else}}
33-
<img width="26" height="26" src="./image">{{.Label}}
32+
{{else if eq .HookType "custom"}}
33+
<img width="26" height="26" src="{{$.BaseLink}}/{{.CustomHook.ID}}/image">
3434
{{end}}
3535
</div>
3636
</h4>

0 commit comments

Comments
 (0)