From 60aca9ea18f4fed6c98c83d41036f9a34fdbd28c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 21 Feb 2017 20:21:25 -0500 Subject: webhook: also only enable certain types (#3356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add new config option '[webhook] TYPES’. --- templates/repo/settings/webhook_list.tmpl | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 templates/repo/settings/webhook_list.tmpl (limited to 'templates/repo/settings/webhook_list.tmpl') diff --git a/templates/repo/settings/webhook_list.tmpl b/templates/repo/settings/webhook_list.tmpl new file mode 100644 index 00000000..9fbd0032 --- /dev/null +++ b/templates/repo/settings/webhook_list.tmpl @@ -0,0 +1,55 @@ +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "repo.settings.hooks"}} +
+ +
+

+
+
+
+ {{.Description | Str2html}} +
+ {{range .Webhooks}} +
+ {{if eq .LastStatus 1}} + + {{else if eq .LastStatus 2}} + + {{else}} + + {{end}} + {{.URL}} +
+ + +
+
+ {{end}} +
+
+
+ +{{template "repo/settings/webhook_delete_modal" .}} -- cgit v1.2.3