hooks.tmpl 2.0 KB

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