webhook_new.tmpl 1.0 KB

12345678910111213141516171819202122232425262728293031
  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 "gogs"}}
  13. <img class="img-13" src="{{AppSubURL}}/img/favicon.png">
  14. {{else}}
  15. <img class="img-13" src="{{AppSubURL}}/img/{{.HookType}}.png">
  16. {{end}}
  17. </div>
  18. </h4>
  19. <div class="ui attached segment">
  20. {{template "repo/settings/webhook/gogs" .}}
  21. {{template "repo/settings/webhook/slack" .}}
  22. {{template "repo/settings/webhook/discord" .}}
  23. {{template "repo/settings/webhook/dingtalk" .}}
  24. </div>
  25. {{template "repo/settings/webhook/history" .}}
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. {{template "base/footer" .}}