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.

base_list.tmpl 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <h4 class="ui top attached header">
  2. {{.Title}}
  3. <div class="ui right">
  4. <div class="ui jump dropdown">
  5. <div class="ui primary tiny button">{{.locale.Tr "repo.settings.add_webhook"}}</div>
  6. <div class="menu">
  7. <a class="item" href="{{.BaseLinkNew}}/gitea/new">
  8. {{template "shared/webhook/icon" (dict "HookType" "gitea" "Size" 20)}}
  9. {{.locale.Tr "repo.settings.web_hook_name_gitea"}}
  10. </a>
  11. <a class="item" href="{{.BaseLinkNew}}/gogs/new">
  12. {{template "shared/webhook/icon" (dict "HookType" "gogs" "Size" 20)}}
  13. {{.locale.Tr "repo.settings.web_hook_name_gogs"}}
  14. </a>
  15. <a class="item" href="{{.BaseLinkNew}}/slack/new">
  16. {{template "shared/webhook/icon" (dict "HookType" "slack" "Size" 20)}}
  17. {{.locale.Tr "repo.settings.web_hook_name_slack"}}
  18. </a>
  19. <a class="item" href="{{.BaseLinkNew}}/discord/new">
  20. {{template "shared/webhook/icon" (dict "HookType" "discord" "Size" 20)}}
  21. {{.locale.Tr "repo.settings.web_hook_name_discord"}}
  22. </a>
  23. <a class="item" href="{{.BaseLinkNew}}/dingtalk/new">
  24. {{template "shared/webhook/icon" (dict "HookType" "dingtalk" "Size" 20)}}
  25. {{.locale.Tr "repo.settings.web_hook_name_dingtalk"}}
  26. </a>
  27. <a class="item" href="{{.BaseLinkNew}}/telegram/new">
  28. {{template "shared/webhook/icon" (dict "HookType" "telegram" "Size" 20)}}
  29. {{.locale.Tr "repo.settings.web_hook_name_telegram"}}
  30. </a>
  31. <a class="item" href="{{.BaseLinkNew}}/msteams/new">
  32. {{template "shared/webhook/icon" (dict "HookType" "msteams" "Size" 20)}}
  33. {{.locale.Tr "repo.settings.web_hook_name_msteams"}}
  34. </a>
  35. <a class="item" href="{{.BaseLinkNew}}/feishu/new">
  36. {{template "shared/webhook/icon" (dict "HookType" "feishu" "Size" 20)}}
  37. {{.locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}}
  38. </a>
  39. <a class="item" href="{{.BaseLinkNew}}/matrix/new">
  40. {{template "shared/webhook/icon" (dict "HookType" "matrix" "Size" 20)}}
  41. {{.locale.Tr "repo.settings.web_hook_name_matrix"}}
  42. </a>
  43. <a class="item" href="{{.BaseLinkNew}}/wechatwork/new">
  44. {{template "shared/webhook/icon" (dict "HookType" "wechatwork" "Size" 20)}}
  45. {{.locale.Tr "repo.settings.web_hook_name_wechatwork"}}
  46. </a>
  47. <a class="item" href="{{.BaseLinkNew}}/packagist/new">
  48. {{template "shared/webhook/icon" (dict "HookType" "packagist" "Size" 20)}}
  49. {{.locale.Tr "repo.settings.web_hook_name_packagist"}}
  50. </a>
  51. </div>
  52. </div>
  53. </div>
  54. </h4>
  55. <div class="ui attached segment">
  56. <div class="ui list">
  57. <div class="item">
  58. {{.Description | Str2html}}
  59. </div>
  60. {{range .Webhooks}}
  61. <div class="item truncated-item-container">
  62. <span class="text {{if eq .LastStatus 1}}green{{else if eq .LastStatus 2}}red{{else}}grey{{end}} gt-mr-3">{{svg "octicon-dot-fill" 22}}</span>
  63. <a class="text truncate gt-f1 gt-mr-3" title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
  64. <a class="muted gt-p-3" href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a></span>
  65. <a class="delete-button gt-p-3" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a>
  66. </div>
  67. {{end}}
  68. </div>
  69. </div>