2021-09-30 23:02:18 +05:30
|
|
|
- expanded = integration_expanded?('mailgun_')
|
|
|
|
%section.settings.as-mailgun.no-animate#js-mailgun-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2022-08-13 15:12:31 +05:30
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2021-09-30 23:02:18 +05:30
|
|
|
= _('Mailgun')
|
2022-07-23 23:45:48 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2021-09-30 23:02:18 +05:30
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
2021-11-18 22:05:49 +05:30
|
|
|
= _('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-09-30 23:02:18 +05:30
|
|
|
.settings-content
|
2022-06-21 17:19:12 +05:30
|
|
|
= 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-10-11 01:57:18 +05:30
|
|
|
= form_errors(@application_setting) if expanded
|
2021-09-30 23:02:18 +05:30
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2022-06-21 17:19:12 +05:30
|
|
|
= f.gitlab_ui_checkbox_component :mailgun_events_enabled,
|
|
|
|
_('Enable Mailgun event receiver')
|
2021-09-30 23:02:18 +05:30
|
|
|
.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'
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
= f.submit _('Save changes'), pajamas_button: true
|