forked from kevadesu/forgejo
finish webhook ui,
some ui fix
This commit is contained in:
parent
3b7465f817
commit
d34c3bb751
4 changed files with 83 additions and 1 deletions
|
@ -235,3 +235,14 @@ func WebHooksAdd(ctx *middleware.Context) {
|
|||
ctx.Data["Title"] = strings.TrimPrefix(ctx.Repo.RepoLink, "/") + " - Add Web Hook"
|
||||
ctx.HTML(200, "repo/hooks_add")
|
||||
}
|
||||
|
||||
func WebHooksEdit(ctx *middleware.Context) {
|
||||
if !ctx.Repo.IsOwner {
|
||||
ctx.Handle(404, "repo.WebHooksEdit", nil)
|
||||
return
|
||||
}
|
||||
|
||||
ctx.Data["IsRepoToolbarWebHooks"] = true
|
||||
ctx.Data["Title"] = strings.TrimPrefix(ctx.Repo.RepoLink, "/") + " - Web Hook Name"
|
||||
ctx.HTML(200, "repo/hooks_edit")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue