forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change webhook-type in create-view (go-gitea#29114)
It's now possible to change webhook-type in create-view. before: ![image](https://github.com/go-gitea/gitea/assets/72873130/9ee1b9fb-843b-4f28-b8d6-6361e5d184f1) after: ![image](https://github.com/go-gitea/gitea/assets/72873130/9dbf058f-5912-43af-9acd-487271212f2d) --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io> (cherry picked from commit 374e886) Conflicts: templates/repo/settings/webhook/base_list.tmpl templates/shared/webhook/icon.tmpl
- Loading branch information
1 parent
c2d4c2f
commit 7263b3e
Showing
6 changed files
with
71 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{{$size := 20}} | ||
{{if .Size}} | ||
{{$size = .Size}} | ||
{{end}} | ||
<div class="menu"> | ||
<a class="item" href="{{.BaseLinkNew}}/forgejo/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "forgejo" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_forgejo"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/gitea/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "gitea" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_gitea"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/gogs/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "gogs" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_gogs"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/slack/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "slack" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_slack"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/discord/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "discord" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_discord"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/dingtalk/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "dingtalk" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_dingtalk"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/telegram/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "telegram" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_telegram"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/msteams/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "msteams" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_msteams"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/feishu/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "feishu" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_feishu_or_larksuite"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/matrix/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "matrix" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_matrix"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/wechatwork/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "wechatwork" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_wechatwork"}} | ||
</a> | ||
<a class="item" href="{{.BaseLinkNew}}/packagist/new"> | ||
{{template "shared/webhook/icon" (dict "HookType" "packagist" "Size" $size)}} | ||
{{ctx.Locale.Tr "repo.settings.web_hook_name_packagist"}} | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters