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

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

35 lines
2.3 KiB
Text
Raw Normal View History

2019-12-26 22:10:19 +05:30
- expanded = integration_expanded?('snowplow_')
2022-01-26 12:08:38 +05:30
%section.settings.as-snowplow.no-animate#js-snowplow-settings{ class: ('expanded' if expanded), data: { qa_selector: 'snowplow_settings_content' } }
2019-10-12 21:52:04 +05:30
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2019-10-12 21:52:04 +05:30
= _('Snowplow')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2019-10-12 21:52:04 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-09-30 23:02:18 +05:30
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('development/snowplow/index') }
2021-11-18 22:05:49 +05:30
= html_escape(_('Configure %{link} to track events. %{link_start}Learn more.%{link_end}')) % { link: link_to('Snowplow', 'https://snowplowanalytics.com/', target: '_blank', rel: 'noopener noreferrer').html_safe, link_start: link_start, link_end: '</a>'.html_safe }
2019-10-12 21:52:04 +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-snowplow-settings'), html: { class: 'fieldset-form', id: 'snowplow-settings' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting) if expanded
2019-10-12 21:52:04 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :snowplow_enabled, _('Enable Snowplow tracking'), checkbox_options: { data: { qa_selector: 'snowplow_enabled_checkbox' } }
2019-10-12 21:52:04 +05:30
.form-group
= f.label :snowplow_collector_hostname, _('Collector hostname'), class: 'label-light'
2021-03-11 19:13:27 +05:30
= f.text_field :snowplow_collector_hostname, class: 'form-control gl-form-input', placeholder: 'snowplow.example.com'
2021-09-30 23:02:18 +05:30
.form-text.text-muted
= _('The hostname of your Snowplow collector.')
2019-10-12 21:52:04 +05:30
.form-group
2019-12-26 22:10:19 +05:30
= f.label :snowplow_app_id, _('App ID'), class: 'label-light'
2021-09-30 23:02:18 +05:30
= f.text_field :snowplow_app_id, class: 'form-control gl-form-input', placeholder: 'gitlab'
.form-text.text-muted
= _('The ID of the application.')
2019-10-12 21:52:04 +05:30
.form-group
= f.label :snowplow_cookie_domain, _('Cookie domain'), class: 'label-light'
2021-09-30 23:02:18 +05:30
= f.text_field :snowplow_cookie_domain, class: 'form-control gl-form-input', placeholder: '.your-gitlab-instance.com'
.form-text.text-muted
= _('The Snowplow cookie domain.')
2019-10-12 21:52:04 +05:30
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), data: { qa_selector: 'save_changes_button' }, pajamas_button: true