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.

36 lines
1.5 KiB

10 years ago
10 years ago
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="repo-wrapper">
  4. {{template "repo/header_old" .}}
  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. <strong>{{.i18n.Tr "repo.settings.githooks"}}</strong>
  15. </div>
  16. <ul class="panel-body setting-list">
  17. <li>{{.i18n.Tr "repo.settings.githooks_desc" | Str2html}}</li>
  18. {{range .Hooks}}
  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. <span>{{.Name}}</span>
  26. <a href="{{$.RepoLink}}/settings/hooks/git/{{.Name}}" class="text-blue right"><i class="fa fa-pencil"></i></a>
  27. </li>
  28. {{end}}
  29. </ul>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. {{template "ng/base/footer" .}}