diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-30 09:08:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-30 09:08:07 +0000 |
commit | d08bee6aaf36fb6cd922f130f5596484c64562c0 (patch) | |
tree | 2476df6e22109ff9fa04db96a8867b2411cf7d5c /app/views/admin/application_settings/_usage.html.haml | |
parent | 28fd41cf28bfac77fe877b6cce83594c1f9f21a1 (diff) | |
download | gitlab-ce-d08bee6aaf36fb6cd922f130f5596484c64562c0.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/admin/application_settings/_usage.html.haml')
-rw-r--r-- | app/views/admin/application_settings/_usage.html.haml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_usage.html.haml b/app/views/admin/application_settings/_usage.html.haml index 4bc166697d5..e307fc3a33a 100644 --- a/app/views/admin/application_settings/_usage.html.haml +++ b/app/views/admin/application_settings/_usage.html.haml @@ -35,5 +35,26 @@ - deactivating_service_ping_path = help_page_path('development/usage_ping/index.md', anchor: 'disable-usage-ping') - deactivating_service_ping_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: deactivating_service_ping_path } = s_('For more information, see the documentation on %{deactivating_service_ping_link_start}deactivating service ping%{deactivating_service_ping_link_end}.').html_safe % { deactivating_service_ping_link_start: deactivating_service_ping_link_start, deactivating_service_ping_link_end: '</a>'.html_safe } + .form-group + - usage_ping_enabled = @application_setting.usage_ping_enabled? + .form-check + = f.check_box :usage_ping_features_enabled?, disabled: !usage_ping_enabled, class: 'form-check-input' + = f.label :usage_ping_features_enabled?, class: 'form-check-label gl-cursor-not-allowed', id: 'usage_ping_features_label' do + = _('Enable Registration Features') + = link_to sprite_icon('question-o'), help_page_path('development/usage_ping/index.md', anchor: 'registration-features-program') + .form-text.text-muted + - if usage_ping_enabled + %p.gl-mb-3.text-muted{ id: 'usage_ping_features_helper_text' }= _('You can enable Registration Features because Service Ping is enabled. To continue using Registration Features in future, you will also need to register with GitLab via a new cloud licensing service.') + - else + %p.gl-mb-3.text-muted{ id: 'usage_ping_features_helper_text' }= _('To enable Registration Features, make sure "Enable service ping" is checked.') + + %p.gl-mb-3.text-muted= _('Registration Features include:') + .form-text + - email_from_gitlab_path = help_page_path('tools/email.md') + - link_end = '</a>'.html_safe + - email_from_gitlab_link = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: email_from_gitlab_path } + %ul + %li + = _('Email from GitLab - email users right from the Admin Area. %{link_start}Learn more%{link_end}.').html_safe % { link_start: email_from_gitlab_link, link_end: link_end } = f.submit _('Save changes'), class: "gl-button btn btn-confirm" |