summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/webhook_discord.go4
-rw-r--r--templates/org/settings/hook_new.tmpl2
2 files changed, 6 insertions, 0 deletions
diff --git a/models/webhook_discord.go b/models/webhook_discord.go
index 631c8174e9..6d39d8b993 100644
--- a/models/webhook_discord.go
+++ b/models/webhook_discord.go
@@ -1,3 +1,7 @@
+// Copyright 2017 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl
index 1710713f94..15c6943185 100644
--- a/templates/org/settings/hook_new.tmpl
+++ b/templates/org/settings/hook_new.tmpl
@@ -15,6 +15,8 @@
<img class="img-13" src="{{AppSubUrl}}/img/gogs.ico">
{{else if eq .HookType "slack"}}
<img class="img-13" src="{{AppSubUrl}}/img/slack.png">
+ {{else if eq .HookType "discord"}}
+ <img class="img-13" src="{{AppSubUrl}}/img/discord.png">
{{end}}
</div>
</h4>