githooks.tmpl 928 B

12345678910111213141516171819202122232425262728
  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 segment">
  13. <p>{{.i18n.Tr "repo.settings.githooks_desc"}}</p>
  14. <div class="ui hook list">
  15. {{range .Hooks}}
  16. <div class="item">
  17. <span class="text {{if not .IsSample}}green{{else}}grey{{end}}"><i class="octicon octicon-primitive-dot"></i></span>
  18. <span>{{.Name}}</span>
  19. <a class="text blue ui right" href="{{$.RepoLink}}/settings/hooks/git/{{.Name}}"><i class="fa fa-pencil"></i></a>
  20. </div>
  21. {{end}}
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. {{template "base/footer" .}}