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.

30 lines
1017 B

  1. {{template "base/head" .}}
  2. <div class="repository settings new webhook">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. {{template "repo/sidebar" .}}
  6. <div class="ui grid">
  7. {{template "repo/settings/navbar" .}}
  8. <div class="twelve wide column content">
  9. {{template "base/alert" .}}
  10. <h4 class="ui top attached header">
  11. {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}
  12. <div class="ui right">
  13. {{if eq .HookType "gogs"}}
  14. <img class="img-13" src="{{AppSubUrl}}/img/favicon.png">
  15. {{else if eq .HookType "slack"}}
  16. <img class="img-13" src="{{AppSubUrl}}/img/slack.png">
  17. {{end}}
  18. </div>
  19. </h4>
  20. <div class="ui attached segment">
  21. {{template "repo/settings/hook_gogs" .}}
  22. {{template "repo/settings/hook_slack" .}}
  23. </div>
  24. {{template "repo/settings/hook_history" .}}
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. {{template "base/footer" .}}