hooks.tmpl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="repo-wrapper">
  4. {{template "repo/header" .}}
  5. <div id="setting-wrapper" class="main-wrapper">
  6. <div id="repo-setting" class="container clear">
  7. {{template "repo/settings/nav" .}}
  8. <div class="grid-4-5 left">
  9. <div class="setting-content">
  10. {{template "ng/base/alert" .}}
  11. <div id="setting-content">
  12. <div id="repo-hooks-panel" class="panel panel-radius">
  13. <div class="panel-header">
  14. <a class="btn btn-small btn-black btn-header btn-radius right" href="{{.RepoLink}}/settings/hooks/new">{{.i18n.Tr "repo.settings.add_webhook"}}</a>
  15. <strong>{{.i18n.Tr "repo.settings.hooks"}}</strong>
  16. </div>
  17. <ul class="panel-body setting-list">
  18. <li>{{.i18n.Tr "repo.settings.hooks_desc" "http://gogs.io/docs/features/webhook.html" | Str2html}}</li>
  19. {{range .Webhooks}}
  20. <li>
  21. {{if .IsActive}}
  22. <span class="left text-success"><i class="octicon octicon-check"></i></span>
  23. {{else}}
  24. <span class="left text-grey"><i class="octicon octicon-primitive-dot"></i></span>
  25. {{end}}
  26. <a class="link" href="{{$.RepoLink}}/settings/hooks/{{.Id}}">{{.Url}}</a>
  27. <a href="{{$.RepoLink}}/settings/hooks?remove={{.Id}}" class="text-red right"><i class="fa fa-times"></i></a>
  28. <a href="{{$.RepoLink}}/settings/hooks/{{.Id}}" class="text-blue right"><i class="fa fa-pencil"></i></a>
  29. </li>
  30. {{end}}
  31. </ul>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. {{template "ng/base/footer" .}}