fix discord hook bug (#2778)

tokarchuk/v1.17
Lunny Xiao 7 years ago committed by GitHub
parent b0f04e7593
commit 796be03e9b
  1. 4
      models/webhook_discord.go
  2. 2
      templates/org/settings/hook_new.tmpl

@ -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 (

@ -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>

Loading…
Cancel
Save