Commit 0f9223b2 authored by Axel García's avatar Axel García

Pass license as parameter for RF shared view

parent d37cc537
- license = local_assigns.fetch(:license)
- registration_features_docs_path = help_page_path('development/service_ping/index.md', anchor: 'registration-features-program')
- service_ping_settings_path = metrics_and_profiling_admin_application_settings_path(anchor: 'js-usage-settings')
%p
%div
%span= s_('RegistrationFeatures|Want to use this feature for free?')
- if @license.present?
- if license.present?
= link_to s_('RegistrationFeatures|Enable Service Ping and register for this feature.'), service_ping_settings_path
= sprintf(s_('RegistrationFeatures|Read more about the %{linkStart}Registration Features Program%{linkEnd}.') , { linkStart: "<a href=\"#{registration_features_docs_path}\" target=\"_blank\">", linkEnd: "</a>", }).html_safe
......@@ -11,4 +11,4 @@
- else
= form.number_field :disabled_repository_size_limit, value: '0', class: 'form-control gl-form-input', disabled: true
%span.form-text.text-muted
= render 'shared/registration_features_discovery_message'
= render 'shared/registration_features_discovery_message', license: @license
......@@ -14,4 +14,4 @@
- else
= form.number_field :disabled_repository_size_limit, value: '0', class: 'form-control', disabled: true
%span.form-text.text-muted
= render 'shared/registration_features_discovery_message'
= render 'shared/registration_features_discovery_message', license: @license
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment