debian-mirror-gitlab/app/views/admin/hooks/_form.html.haml

53 lines
2 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
= form_errors(hook)
.form-group
2018-03-27 19:54:05 +05:30
= form.label :url, 'URL', class: 'label-light'
= form.text_field :url, class: 'form-control'
2017-08-17 22:00:37 +05:30
.form-group
2018-03-27 19:54:05 +05:30
= form.label :token, 'Secret Token', class: 'label-light'
= form.text_field :token, class: 'form-control'
%p.help-block
Use this token to validate received payloads
2017-08-17 22:00:37 +05:30
.form-group
2018-03-27 19:54:05 +05:30
= form.label :url, 'Trigger', class: 'label-light'
%ul.list-unstyled
%li
.help-block
System hook will be triggered on set of events like creating project
or adding ssh key. But you can also enable extra triggers like Push events.
2017-08-17 22:00:37 +05:30
.prepend-top-default
2017-09-10 17:25:29 +05:30
= form.check_box :repository_update_events, class: 'pull-left'
.prepend-left-20
= form.label :repository_update_events, class: 'list-label' do
%strong Repository update events
%p.light
This URL will be triggered when repository is updated
2018-03-27 19:54:05 +05:30
%li
2017-08-17 22:00:37 +05:30
= form.check_box :push_events, class: 'pull-left'
.prepend-left-20
= form.label :push_events, class: 'list-label' do
%strong Push events
%p.light
2017-09-10 17:25:29 +05:30
This URL will be triggered for each branch updated to the repository
2018-03-27 19:54:05 +05:30
%li
2017-08-17 22:00:37 +05:30
= form.check_box :tag_push_events, class: 'pull-left'
.prepend-left-20
= form.label :tag_push_events, class: 'list-label' do
%strong Tag push events
%p.light
2017-09-10 17:25:29 +05:30
This URL will be triggered when a new tag is pushed to the repository
2018-03-27 19:54:05 +05:30
%li
2018-03-17 18:26:18 +05:30
= form.check_box :merge_requests_events, class: 'pull-left'
.prepend-left-20
= form.label :merge_requests_events, class: 'list-label' do
%strong Merge request events
%p.light
This URL will be triggered when a merge request is created/updated/merged
2017-08-17 22:00:37 +05:30
.form-group
2018-03-27 19:54:05 +05:30
= form.label :enable_ssl_verification, 'SSL verification', class: 'label-light checkbox'
.checkbox
= form.label :enable_ssl_verification do
= form.check_box :enable_ssl_verification
%strong Enable SSL verification