本站源代码
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.

58 lines
2.1KB

  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}}/gitea/new">
  9. <img class="img-10" src="{{StaticUrlPrefix}}/img/gitea-sm.png">Gitea
  10. </a>
  11. <a class="item" href="{{.BaseLink}}/gogs/new">
  12. <img class="img-10" src="{{StaticUrlPrefix}}/img/gogs.ico">Gogs
  13. </a>
  14. <a class="item" href="{{.BaseLink}}/slack/new">
  15. <img class="img-10" src="{{StaticUrlPrefix}}/img/slack.png">Slack
  16. </a>
  17. <a class="item" href="{{.BaseLink}}/discord/new">
  18. <img class="img-10" src="{{StaticUrlPrefix}}/img/discord.png">Discord
  19. </a>
  20. <a class="item" href="{{.BaseLink}}/dingtalk/new">
  21. <img class="img-10" src="{{StaticUrlPrefix}}/img/dingtalk.ico">Dingtalk
  22. </a>
  23. <a class="item" href="{{.BaseLink}}/telegram/new">
  24. <img class="img-10" src="{{StaticUrlPrefix}}/img/telegram.png">Telegram
  25. </a>
  26. <a class="item" href="{{.BaseLink}}/msteams/new">
  27. <img class="img-10" src="{{StaticUrlPrefix}}/img/msteams.png">Microsoft Teams
  28. </a>
  29. </div>
  30. </div>
  31. </div>
  32. </h4>
  33. <div class="ui attached segment">
  34. <div class="ui list">
  35. <div class="item">
  36. {{.Description | Str2html}}
  37. </div>
  38. {{range .Webhooks}}
  39. <div class="item">
  40. {{if eq .LastStatus 1}}
  41. <span class="text green"><i class="octicon octicon-check"></i></span>
  42. {{else if eq .LastStatus 2}}
  43. <span class="text red"><i class="octicon octicon-alert"></i></span>
  44. {{else}}
  45. <span class="text grey"><i class="octicon octicon-primitive-dot"></i></span>
  46. {{end}}
  47. <a class="dont-break-out" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
  48. <div class="ui right">
  49. <span class="text blue"><a href="{{$.BaseLink}}/{{.ID}}"><i class="fa fa-pencil"></i></a></span>
  50. <span class="text red"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="fa fa-times"></i></a></span>
  51. </div>
  52. </div>
  53. {{end}}
  54. </div>
  55. </div>
  56. {{template "repo/settings/webhook/delete_modal" .}}
上海开阖软件有限公司 沪ICP备12045867号-1