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.

40 lines
1.4 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="{{AppSubUrl}}/img/gitea-sm.png">
  15. {{else if eq .HookType "gogs"}}
  16. <img class="img-13" src="{{AppSubUrl}}/img/gogs.ico">
  17. {{else if eq .HookType "slack"}}
  18. <img class="img-13" src="{{AppSubUrl}}/img/slack.png">
  19. {{else if eq .HookType "discord"}}
  20. <img class="img-13" src="{{AppSubUrl}}/img/discord.png">
  21. {{else if eq .HookType "dingtalk"}}
  22. <img class="img-13" src="{{AppSubUrl}}/img/dingtalk.ico">
  23. {{else if eq .HookType "msteams"}}
  24. <img class="img-13" src="{{AppSubUrl}}/img/msteams.png">
  25. {{end}}
  26. </div>
  27. </h4>
  28. <div class="ui attached segment">
  29. {{template "repo/settings/webhook/gitea" .}}
  30. {{template "repo/settings/webhook/gogs" .}}
  31. {{template "repo/settings/webhook/slack" .}}
  32. {{template "repo/settings/webhook/discord" .}}
  33. {{template "repo/settings/webhook/dingtalk" .}}
  34. {{template "repo/settings/webhook/msteams" .}}
  35. </div>
  36. {{template "repo/settings/webhook/history" .}}
  37. </div>
  38. </div>
  39. {{template "base/footer" .}}