From ced50e0ec13085504fa19c82f018a2eecb70ff68 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 28 Aug 2017 13:06:45 +0800 Subject: Implementation of discord webhook (#2402) * implementation of discord webhook * fix webhooks * fix typo and unnecessary color values * fix typo * fix imports and revert changes to webhook_slack.go --- templates/repo/settings/hook_discord.tmpl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/repo/settings/hook_discord.tmpl (limited to 'templates/repo/settings/hook_discord.tmpl') diff --git a/templates/repo/settings/hook_discord.tmpl b/templates/repo/settings/hook_discord.tmpl new file mode 100644 index 0000000000..901e7e6311 --- /dev/null +++ b/templates/repo/settings/hook_discord.tmpl @@ -0,0 +1,19 @@ +{{if eq .HookType "discord"}} +

{{.i18n.Tr "repo.settings.add_discord_hook_desc" "https://discordapp.com" | Str2html}}

+
+ {{.CsrfTokenHtml}} +
+ + +
+
+ + +
+
+ + +
+ {{template "repo/settings/hook_settings" .}} +
+{{end}} -- cgit v1.2.3