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.

32 lines
1.7 KiB

  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. {{template "repo/setting_nav" .}}
  7. <div id="repo-setting-container" class="col-md-10">
  8. {{template "base/alert" .}}
  9. <div class="panel panel-default">
  10. <div class="panel-heading">
  11. Webhooks
  12. </div>
  13. <div class="panel-body">
  14. <p>Webhooks allow external services to be notified when certain events happen on GitHub. When the specified events happen, we'll send a POST request to each of the URLs you provide. Learn more in our Webhooks Guide.<br/>&nbsp;</p>
  15. <ul id="repo-hooks-list" class="list-unstyled">
  16. {{range .Webhooks}}
  17. <li>
  18. {{if .IsActive}}<span class="pull-left status text-success"><i class="fa fa-check"></i></span>{{else}}<span class="pull-left status"><i class="fa fa-times"></i></span>{{end}}
  19. <a class="link" href="{{$.RepoLink}}/settings/hooks/{{.Id}}">{{.Url}}</a>
  20. <a href="{{$.RepoLink}}/settings/hooks?remove={{.Id}}" class="remove-hook pull-right"><i class="fa fa-times"></i></a>
  21. <a href="{{$.RepoLink}}/settings/hooks/{{.Id}}" class="edit-hook pull-right"><i class="fa fa-pencil"></i></a>
  22. </li>
  23. {{end}}
  24. </ul>
  25. </div>
  26. <div class="panel-footer">
  27. <a href="{{.RepoLink}}/settings/hooks/add"><button class="btn btn-primary">Add Webhook</button></a>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. {{template "base/footer" .}}