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.

43 lines
1.6 KiB

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