1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 10:48:37 +00:00

finish webhook ui,

some ui fix
This commit is contained in:
FuXiaoHei
2014-05-05 20:16:24 +08:00
parent 3b7465f817
commit d34c3bb751
4 changed files with 83 additions and 1 deletions

View File

@@ -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")
}