debian-mirror-gitlab/app/views/admin/application_settings/_floc.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
1.2 KiB
Text
Raw Normal View History

2021-06-08 01:23:25 +05:30
- expanded = integration_expanded?('floc_')
%section.settings.no-animate#js-floc-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
2022-10-11 01:57:18 +05:30
= s_('FloC|Federated Learning of Cohorts (FLoC)')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2021-06-08 01:23:25 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2022-10-11 01:57:18 +05:30
- floc_link_url = help_page_path('user/admin_area/settings/floc.md')
- floc_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: floc_link_url }
= html_escape(s_('FloC|Configure whether you want to participate in FLoC. %{floc_link_start}What is FLoC?%{floc_link_end}')) % { floc_link_start: floc_link_start, floc_link_end: '</a>'.html_safe }
2021-06-08 01:23:25 +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-floc-settings'), html: { class: 'fieldset-form', id: 'floc-settings' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2021-06-08 01:23:25 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :floc_enabled,
2022-10-11 01:57:18 +05:30
s_('FloC|Participate in FLoC')
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), pajamas_button: true