Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

hook_list.tmpl 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{template "base/alert" .}}
  2. <h4 class="ui top attached header">
  3. {{.i18n.Tr "repo.settings.hooks"}}
  4. <div class="ui right">
  5. <div class="ui floating1 jump dropdown">
  6. <div class="ui blue tiny button">{{.i18n.Tr "repo.settings.add_webhook"}}</div>
  7. <div class="menu">
  8. <a class="item" href="{{.BaseLink}}/settings/hooks/gitea/new">
  9. <img class="img-10" src="{{AppSubUrl}}/img/gitea-sm.png">Gitea
  10. </a>
  11. <a class="item" href="{{.BaseLink}}/settings/hooks/gogs/new">
  12. <img class="img-10" src="{{AppSubUrl}}/img/gogs.ico">Gogs
  13. </a>
  14. <a class="item" href="{{.BaseLink}}/settings/hooks/slack/new">
  15. <img class="img-10" src="{{AppSubUrl}}/img/slack.png">Slack
  16. </a>
  17. </div>
  18. </div>
  19. </div>
  20. </h4>
  21. <div class="ui attached segment">
  22. <div class="ui list">
  23. <div class="item">
  24. {{.Description | Str2html}}
  25. </div>
  26. {{range .Webhooks}}
  27. <div class="item">
  28. {{if eq .LastStatus 1}}
  29. <span class="text green"><i class="octicon octicon-check"></i></span>
  30. {{else if eq .LastStatus 2}}
  31. <span class="text red"><i class="octicon octicon-alert"></i></span>
  32. {{else}}
  33. <span class="text grey"><i class="octicon octicon-primitive-dot"></i></span>
  34. {{end}}
  35. <a href="{{$.BaseLink}}/settings/hooks/{{.ID}}">{{.URL}}</a>
  36. <div class="ui right">
  37. <span class="text blue"><a href="{{$.BaseLink}}/settings/hooks/{{.ID}}"><i class="fa fa-pencil"></i></a></span>
  38. <span class="text red"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="fa fa-times"></i></a></span>
  39. </div>
  40. </div>
  41. {{end}}
  42. </div>
  43. </div>
  44. {{template "repo/settings/hook_delete_modal" .}}