You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

  1. {{template "base/head" .}}
  2. <div class="organization settings new webhook">
  3. {{template "org/header" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. {{template "org/settings/navbar" .}}
  7. <div class="twelve wide column content">
  8. {{template "base/alert" .}}
  9. <h4 class="ui top attached header">
  10. {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}
  11. <div class="ui right">
  12. {{if eq .HookType "gitea"}}
  13. <img class="img-13" src="{{AppSubUrl}}/img/gitea-sm.png">
  14. {{else if eq .HookType "gogs"}}
  15. <img class="img-13" src="{{AppSubUrl}}/img/gogs.ico">
  16. {{else if eq .HookType "slack"}}
  17. <img class="img-13" src="{{AppSubUrl}}/img/slack.png">
  18. {{else if eq .HookType "discord"}}
  19. <img class="img-13" src="{{AppSubUrl}}/img/discord.png">
  20. {{else if eq .HookType "dingtalk"}}
  21. <img class="img-13" src="{{AppSubUrl}}/img/dingtalk.png">
  22. {{end}}
  23. </div>
  24. </h4>
  25. <div class="ui attached segment">
  26. {{template "repo/settings/webhook/gitea" .}}
  27. {{template "repo/settings/webhook/gogs" .}}
  28. {{template "repo/settings/webhook/slack" .}}
  29. {{template "repo/settings/webhook/discord" .}}
  30. {{template "repo/settings/webhook/dingtalk" .}}
  31. </div>
  32. {{template "repo/settings/webhook/history" .}}
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. {{template "base/footer" .}}