2018-04-12 20:11:22 +00:00
|
|
|
= form_for @application_setting, url: admin_application_settings_path, html: { class: 'fieldset-form' } do |f|
|
2018-04-04 09:44:32 +00:00
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2018-04-13 17:49:32 +00:00
|
|
|
.offset-sm-2.col-sm-10
|
2018-04-11 18:05:57 +00:00
|
|
|
.form-check
|
2018-05-31 19:20:46 +00:00
|
|
|
= f.check_box :version_check_enabled, class: 'form-check-input'
|
|
|
|
= f.label :version_check_enabled, class: 'form-check-label' do
|
2018-04-04 09:44:32 +00:00
|
|
|
Enable version check
|
2018-04-11 18:26:37 +00:00
|
|
|
.form-text.text-muted
|
2018-04-04 09:44:32 +00:00
|
|
|
GitLab will inform you if a new version is available.
|
|
|
|
= link_to 'Learn more', help_page_path("user/admin_area/settings/usage_statistics", anchor: "version-check")
|
|
|
|
about what information is shared with GitLab Inc.
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2018-04-13 17:49:32 +00:00
|
|
|
.offset-sm-2.col-sm-10
|
2018-04-04 09:44:32 +00:00
|
|
|
- can_be_configured = @application_setting.usage_ping_can_be_configured?
|
2018-04-11 18:05:57 +00:00
|
|
|
.form-check
|
2018-05-31 19:20:46 +00:00
|
|
|
= f.check_box :usage_ping_enabled, disabled: !can_be_configured, class: 'form-check-input'
|
|
|
|
= f.label :usage_ping_enabled, class: 'form-check-label' do
|
2018-04-04 09:44:32 +00:00
|
|
|
Enable usage ping
|
2018-04-11 18:26:37 +00:00
|
|
|
.form-text.text-muted
|
2018-04-04 09:44:32 +00:00
|
|
|
- if can_be_configured
|
|
|
|
To help improve GitLab and its user experience, GitLab will
|
|
|
|
periodically collect usage information.
|
|
|
|
= link_to 'Learn more', help_page_path("user/admin_area/settings/usage_statistics", anchor: "usage-ping")
|
|
|
|
about what information is shared with GitLab Inc. Visit
|
|
|
|
= link_to 'Cohorts', admin_cohorts_path(anchor: 'usage-ping')
|
|
|
|
to see the JSON payload sent.
|
|
|
|
- else
|
|
|
|
The usage ping is disabled, and cannot be configured through this
|
|
|
|
form. For more information, see the documentation on
|
|
|
|
= succeed '.' do
|
|
|
|
= link_to 'deactivating the usage ping', help_page_path('user/admin_area/settings/usage_statistics', anchor: 'deactivate-the-usage-ping')
|
|
|
|
|
|
|
|
= f.submit 'Save changes', class: "btn btn-success"
|
|
|
|
|