本站源代码
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

41 行
1.6KB

  1. {{template "base/head" .}}
  2. <div class="repository settings new webhook">
  3. {{template "repo/header" .}}
  4. {{template "repo/settings/navbar" .}}
  5. <div class="ui container">
  6. {{template "base/alert" .}}
  7. <h4 class="ui top attached header">
  8. {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}
  9. <div class="ui right">
  10. {{if eq .HookType "gitea"}}
  11. <img class="img-13" src="{{StaticUrlPrefix}}/img/gitea-sm.png">
  12. {{else if eq .HookType "gogs"}}
  13. <img class="img-13" src="{{StaticUrlPrefix}}/img/gogs.ico">
  14. {{else if eq .HookType "slack"}}
  15. <img class="img-13" src="{{StaticUrlPrefix}}/img/slack.png">
  16. {{else if eq .HookType "discord"}}
  17. <img class="img-13" src="{{StaticUrlPrefix}}/img/discord.png">
  18. {{else if eq .HookType "dingtalk"}}
  19. <img class="img-13" src="{{StaticUrlPrefix}}/img/dingtalk.ico">
  20. {{else if eq .HookType "telegram"}}
  21. <img class="img-13" src="{{StaticUrlPrefix}}/img/telegram.png">
  22. {{else if eq .HookType "msteams"}}
  23. <img class="img-13" src="{{StaticUrlPrefix}}/img/msteams.png">
  24. {{end}}
  25. </div>
  26. </h4>
  27. <div class="ui attached segment">
  28. {{template "repo/settings/webhook/gitea" .}}
  29. {{template "repo/settings/webhook/gogs" .}}
  30. {{template "repo/settings/webhook/slack" .}}
  31. {{template "repo/settings/webhook/discord" .}}
  32. {{template "repo/settings/webhook/dingtalk" .}}
  33. {{template "repo/settings/webhook/telegram" .}}
  34. {{template "repo/settings/webhook/msteams" .}}
  35. </div>
  36. {{template "repo/settings/webhook/history" .}}
  37. </div>
  38. </div>
  39. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1