File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
templates/repo/settings/webhook Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ func CustomHooksNewPost(ctx *context.Context) {
32
32
ctx .ServerError ("getOrgRepoCtx" , err )
33
33
return
34
34
}
35
+ ctx .Data ["BaseLink" ] = orCtx .LinkNew
35
36
36
37
hookType , isCustom := checkHookType (ctx )
37
38
if ! isCustom {
Original file line number Diff line number Diff line change 29
29
<img width="26" height="26" src="{{AssetUrlPrefix}}/img/wechatwork.png">
30
30
{{else if eq .HookType "packagist"}}
31
31
<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">
34
34
{{end}}
35
35
</div>
36
36
</h4>
You can’t perform that action at this time.
0 commit comments