2021-06-29 18:07:04 +00:00
|
|
|
- expanded = integration_expanded?('mailgun_')
|
|
|
|
%section.settings.as-mailgun.no-animate#js-mailgun-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2022-07-06 18:08:29 +00:00
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2021-06-29 18:07:04 +00:00
|
|
|
= _('Mailgun')
|
2022-06-13 18:09:22 +00:00
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2021-06-29 18:07:04 +00:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2021-10-12 12:09:36 +00:00
|
|
|
= _('Configure the %{link} integration.').html_safe % { link: link_to(_('Mailgun events'), 'https://documentation.mailgun.com/en/latest/user_manual.html#webhooks', target: '_blank', rel: 'noopener noreferrer') }
|
2021-06-29 18:07:04 +00:00
|
|
|
.settings-content
|
2022-04-14 21:09:21 +00:00
|
|
|
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-mailgun-settings'), html: { class: 'fieldset-form', id: 'mailgun-settings' } do |f|
|
2022-07-01 12:08:08 +00:00
|
|
|
= form_errors(@application_setting, pajamas_alert: true) if expanded
|
2021-06-29 18:07:04 +00:00
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2022-04-14 21:09:21 +00:00
|
|
|
= f.gitlab_ui_checkbox_component :mailgun_events_enabled,
|
|
|
|
_('Enable Mailgun event receiver')
|
2021-06-29 18:07:04 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :mailgun_signing_key, _('Mailgun HTTP webhook signing key'), class: 'label-light'
|
|
|
|
= f.text_field :mailgun_signing_key, class: 'form-control gl-form-input'
|
|
|
|
|
|
|
|
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'
|