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.

hook_new.tmpl 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{template "base/head" .}}
  2. <div class="page-content 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 .PageIsAdminDefaultHooksNew}}
  8. {{.i18n.Tr "admin.defaulthooks.add_webhook"}}
  9. {{else if .PageIsAdminSystemHooksNew}}
  10. {{.i18n.Tr "admin.systemhooks.add_webhook"}}
  11. {{else if .Webhook.IsSystemWebhook}}
  12. {{.i18n.Tr "admin.systemhooks.update_webhook"}}
  13. {{else}}
  14. {{.i18n.Tr "admin.defaulthooks.update_webhook"}}
  15. {{end}}
  16. <div class="ui right">
  17. {{if eq .HookType "gitea"}}
  18. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/gitea.svg">
  19. {{else if eq .HookType "gogs"}}
  20. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/gogs.ico">
  21. {{else if eq .HookType "slack"}}
  22. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/slack.png">
  23. {{else if eq .HookType "discord"}}
  24. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/discord.png">
  25. {{else if eq .HookType "dingtalk"}}
  26. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/dingtalk.ico">
  27. {{else if eq .HookType "telegram"}}
  28. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/telegram.png">
  29. {{else if eq .HookType "msteams"}}
  30. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/msteams.png">
  31. {{else if eq .HookType "feishu"}}
  32. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/feishu.png">
  33. {{else if eq .HookType "matrix"}}
  34. <img width="26" height="26" src="{{AssetUrlPrefix}}/img/matrix.svg">
  35. {{end}}
  36. </div>
  37. </h4>
  38. <div class="ui attached segment">
  39. {{template "repo/settings/webhook/gitea" .}}
  40. {{template "repo/settings/webhook/gogs" .}}
  41. {{template "repo/settings/webhook/slack" .}}
  42. {{template "repo/settings/webhook/discord" .}}
  43. {{template "repo/settings/webhook/dingtalk" .}}
  44. {{template "repo/settings/webhook/telegram" .}}
  45. {{template "repo/settings/webhook/msteams" .}}
  46. {{template "repo/settings/webhook/feishu" .}}
  47. {{template "repo/settings/webhook/matrix" .}}
  48. </div>
  49. {{template "repo/settings/webhook/history" .}}
  50. </div>
  51. </div>
  52. {{template "base/footer" .}}