2019-12-26 22:10:19 +05:30
|
|
|
- expanded = integration_expanded?('hide_third_party_')
|
|
|
|
%section.settings.as-third-party-offers.no-animate#js-third-party-offers-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
|
|
|
%h4
|
|
|
|
= _('Third party offers')
|
2021-01-29 00:20:46 +05:30
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2019-12-26 22:10:19 +05:30
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
|
|
|
= _('Control the display of third party offers.')
|
|
|
|
.settings-content
|
2021-04-29 21:17:54 +05:30
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-third-party-offers-settings'), html: { class: 'fieldset-form', id: 'third-party-offers-settings' } do |f|
|
2019-12-26 22:10:19 +05:30
|
|
|
= form_errors(@application_setting) if expanded
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :hide_third_party_offers, class: 'form-check-input'
|
|
|
|
= f.label :hide_third_party_offers, _('Do not display offers from third parties within GitLab'), class: 'form-check-label'
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|