debian-mirror-gitlab/app/views/shared/web_hooks/_form.html.haml

87 lines
4.6 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
= form_errors(hook)
2017-08-17 22:00:37 +05:30
.form-group
2020-11-24 15:15:51 +05:30
= form.label :url, s_('Webhooks|URL'), class: 'label-bold'
2017-08-17 22:00:37 +05:30
= form.text_field :url, class: 'form-control', placeholder: 'http://example.com/trigger-ci.json'
.form-group
2020-11-24 15:15:51 +05:30
= form.label :token, s_('Webhooks|Secret Token'), class: 'label-bold'
2017-08-17 22:00:37 +05:30
= form.text_field :token, class: 'form-control', placeholder: ''
2018-11-08 19:23:39 +05:30
%p.form-text.text-muted
2020-11-24 15:15:51 +05:30
= s_('Webhooks|Use this token to validate received payloads. It will be sent with the request in the X-Gitlab-Token HTTP header.')
2017-08-17 22:00:37 +05:30
.form-group
2020-11-24 15:15:51 +05:30
= form.label :url, s_('Webhooks|Trigger'), class: 'label-bold'
2018-11-08 19:23:39 +05:30
%ul.list-unstyled.prepend-left-20
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :push_events, class: 'form-check-input'
= form.label :push_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Push events')
2020-04-08 14:13:33 +05:30
= form.text_field :push_events_branch_filter, class: 'form-control', placeholder: 'Branch name or wildcard pattern to trigger on (leave blank for all)'
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered by a push to the repository')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :tag_push_events, class: 'form-check-input'
= form.label :tag_push_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Tag push events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when a new tag is pushed to the repository')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :note_events, class: 'form-check-input'
= form.label :note_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Comments')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when someone adds a comment')
2018-04-05 14:03:07 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :confidential_note_events, class: 'form-check-input'
= form.label :confidential_note_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Confidential Comments')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when someone adds a comment on a confidential issue')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :issues_events, class: 'form-check-input'
= form.label :issues_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Issues events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when an issue is created/updated/merged')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :confidential_issues_events, class: 'form-check-input'
= form.label :confidential_issues_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Confidential Issues events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when a confidential issue is created/updated/merged')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :merge_requests_events, class: 'form-check-input'
= form.label :merge_requests_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Merge request events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when a merge request is created/updated/merged')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :job_events, class: 'form-check-input'
= form.label :job_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Job events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when the job status changes')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :pipeline_events, class: 'form-check-input'
= form.label :pipeline_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Pipeline events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when the pipeline status changes')
2017-08-17 22:00:37 +05:30
%li
2018-11-08 19:23:39 +05:30
= form.check_box :wiki_page_events, class: 'form-check-input'
= form.label :wiki_page_events, class: 'list-label form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Wiki Page events')
2020-04-08 14:13:33 +05:30
%p.text-muted.ml-1
2020-11-24 15:15:51 +05:30
= s_('Webhooks|This URL will be triggered when a wiki page is created/updated')
2020-10-24 23:57:45 +05:30
%li
= form.check_box :deployment_events, class: 'form-check-input'
= form.label :deployment_events, class: 'list-label form-check-label ml-1' do
%strong= s_('Webhooks|Deployment events')
%p.text-muted.ml-1
2021-01-03 14:25:43 +05:30
= s_('Webhooks|This URL is triggered when a deployment starts, finishes, fails, or is canceled')
2017-08-17 22:00:37 +05:30
.form-group
2020-11-24 15:15:51 +05:30
= form.label :enable_ssl_verification, s_('Webhooks|SSL verification'), class: 'label-bold checkbox'
2018-11-08 19:23:39 +05:30
.form-check
= form.check_box :enable_ssl_verification, class: 'form-check-input'
= form.label :enable_ssl_verification, class: 'form-check-label ml-1' do
2020-11-24 15:15:51 +05:30
%strong= s_('Webhooks|Enable SSL verification')