-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Extract common code to new template #26903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3df5b76
Extract common code to new template
kerwin612 f23a14a
Merge branch 'main' into patch-1
kerwin612 d64d2c2
Update hook_new.tmpl
kerwin612 8bdc539
Merge branch 'main' into patch-1
KN4CK3R ee74fef
Update hook_new.tmpl
KN4CK3R 4fd22c3
Update new.tmpl
KN4CK3R 64a935a
Update hook_new.tmpl
KN4CK3R da64219
Update new.tmpl
KN4CK3R 1d12224
Merge branch 'main' into patch-1
GiteaBot f4fcff0
Merge branch 'main' into patch-1
GiteaBot 980f701
Merge branch 'main' into patch-1
GiteaBot ffb8d44
Merge branch 'main' into patch-1
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,26 +1,6 @@ | ||
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings new webhook")}} | ||
<div class="org-setting-content"> | ||
<h4 class="ui top attached header"> | ||
{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}} | ||
<div class="ui right"> | ||
{{template "shared/webhook/icon" .}} | ||
</div> | ||
</h4> | ||
<div class="ui attached segment"> | ||
{{template "repo/settings/webhook/gitea" .}} | ||
{{template "repo/settings/webhook/gogs" .}} | ||
{{template "repo/settings/webhook/slack" .}} | ||
{{template "repo/settings/webhook/discord" .}} | ||
{{template "repo/settings/webhook/dingtalk" .}} | ||
{{template "repo/settings/webhook/telegram" .}} | ||
{{template "repo/settings/webhook/msteams" .}} | ||
{{template "repo/settings/webhook/feishu" .}} | ||
{{template "repo/settings/webhook/matrix" .}} | ||
{{template "repo/settings/webhook/wechatwork" .}} | ||
{{template "repo/settings/webhook/packagist" .}} | ||
</div> | ||
|
||
{{template "repo/settings/webhook/history" .}} | ||
</div> | ||
|
||
<div class="org-setting-content"> | ||
{{template "webhook/new" .}} | ||
</div> | ||
{{template "org/settings/layout_footer" .}} | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,25 +1,6 @@ | ||
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings new webhook")}} | ||
<div class="repo-setting-content"> | ||
<h4 class="ui top attached header"> | ||
{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}} | ||
<div class="ui right"> | ||
{{template "shared/webhook/icon" .}} | ||
</div> | ||
</h4> | ||
<div class="ui attached segment"> | ||
{{template "repo/settings/webhook/gitea" .}} | ||
{{template "repo/settings/webhook/gogs" .}} | ||
{{template "repo/settings/webhook/slack" .}} | ||
{{template "repo/settings/webhook/discord" .}} | ||
{{template "repo/settings/webhook/dingtalk" .}} | ||
{{template "repo/settings/webhook/telegram" .}} | ||
{{template "repo/settings/webhook/msteams" .}} | ||
{{template "repo/settings/webhook/feishu" .}} | ||
{{template "repo/settings/webhook/matrix" .}} | ||
{{template "repo/settings/webhook/wechatwork" .}} | ||
{{template "repo/settings/webhook/packagist" .}} | ||
</div> | ||
|
||
{{template "repo/settings/webhook/history" .}} | ||
</div> | ||
<div class="repo-setting-content"> | ||
{{template "webhook/new" .}} | ||
</div> | ||
{{template "repo/settings/layout_footer" .}} | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,27 +1,8 @@ | ||
{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings new webhook")}} | ||
<div class="user-setting-content"> | ||
<div class="user-setting-content"> | ||
<h4 class="ui top attached header"> | ||
{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}} | ||
<div class="ui right"> | ||
{{template "shared/webhook/icon" .}} | ||
</div> | ||
</h4> | ||
<div class="ui attached segment"> | ||
{{template "repo/settings/webhook/gitea" .}} | ||
{{template "repo/settings/webhook/gogs" .}} | ||
{{template "repo/settings/webhook/slack" .}} | ||
{{template "repo/settings/webhook/discord" .}} | ||
{{template "repo/settings/webhook/dingtalk" .}} | ||
{{template "repo/settings/webhook/telegram" .}} | ||
{{template "repo/settings/webhook/msteams" .}} | ||
{{template "repo/settings/webhook/feishu" .}} | ||
{{template "repo/settings/webhook/matrix" .}} | ||
{{template "repo/settings/webhook/wechatwork" .}} | ||
{{template "repo/settings/webhook/packagist" .}} | ||
</div> | ||
|
||
{{template "repo/settings/webhook/history" .}} | ||
</div> | ||
</div> | ||
<div class="user-setting-content"> | ||
<div class="user-setting-content"> | ||
{{template "webhook/new" .}} | ||
</div> | ||
</div> | ||
{{template "user/settings/layout_footer" .}} | ||
|
This file contains hidden or 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,21 @@ | ||
<h4 class="ui top attached header"> | ||
{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}} | ||
<div class="ui right"> | ||
{{template "shared/webhook/icon" .}} | ||
</div> | ||
</h4> | ||
<div class="ui attached segment"> | ||
{{template "repo/settings/webhook/gitea" .}} | ||
{{template "repo/settings/webhook/gogs" .}} | ||
{{template "repo/settings/webhook/slack" .}} | ||
{{template "repo/settings/webhook/discord" .}} | ||
{{template "repo/settings/webhook/dingtalk" .}} | ||
{{template "repo/settings/webhook/telegram" .}} | ||
{{template "repo/settings/webhook/msteams" .}} | ||
{{template "repo/settings/webhook/feishu" .}} | ||
{{template "repo/settings/webhook/matrix" .}} | ||
{{template "repo/settings/webhook/wechatwork" .}} | ||
{{template "repo/settings/webhook/packagist" .}} | ||
</div> | ||
{{template "repo/settings/webhook/history" .}} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.