githooks.tmpl 978 B

123456789101112131415161718192021222324252627282930
  1. {{template "base/head" .}}
  2. <div class="repository settings githooks">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. {{template "repo/settings/navbar" .}}
  7. <div class="twelve wide column content">
  8. {{template "base/alert" .}}
  9. <h4 class="ui top attached header">
  10. {{.i18n.Tr "repo.settings.githooks"}}
  11. </h4>
  12. <div class="ui attached table segment">
  13. <div class="ui hook list">
  14. <div class="item">
  15. {{.i18n.Tr "repo.settings.githooks_desc" | Str2HTML}}
  16. </div>
  17. {{range .Hooks}}
  18. <div class="item">
  19. <span class="text {{if not .IsSample}}green{{else}}grey{{end}}"><i class="octicon octicon-primitive-dot"></i></span>
  20. <span>{{.Name}}</span>
  21. <a class="text blue ui right" href="{{$.RepoLink}}/settings/hooks/git/{{.Name}}"><i class="fa fa-pencil"></i></a>
  22. </div>
  23. {{end}}
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. {{template "base/footer" .}}