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) {
3232 ctx .ServerError ("getOrgRepoCtx" , err )
3333 return
3434 }
35+ ctx .Data ["BaseLink" ] = orCtx .LinkNew
3536
3637 hookType , isCustom := checkHookType (ctx )
3738 if ! isCustom {
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments