Commit e78ef27b authored by Vitaly Slobodin's avatar Vitaly Slobodin Committed by Douglas Barbosa Alexandre

Make support.gitlab.com constant (EE::CUSTOMER_SUPPORT_URL)

parent 99631f65
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
%p %p
Click #{link_to('here', EE::SUBSCRIPTIONS_PLANS_URL)} to purchase more minutes. Click #{link_to('here', EE::SUBSCRIPTIONS_PLANS_URL)} to purchase more minutes.
%p %p
If you need assistance, please contact #{link_to('GitLab support', 'https://support.gitlab.com')}. If you need assistance, please contact #{link_to('GitLab support', EE::CUSTOMER_SUPPORT_URL)}.
...@@ -2,4 +2,4 @@ This is an automated notification to let you know that your CI Runner Minutes qu ...@@ -2,4 +2,4 @@ This is an automated notification to let you know that your CI Runner Minutes qu
Please visit <%= EE::SUBSCRIPTIONS_PLANS_URL %> to purchase more minutes. Please visit <%= EE::SUBSCRIPTIONS_PLANS_URL %> to purchase more minutes.
If you need assistance, please contact GitLab support (https://support.gitlab.com). If you need assistance, please contact GitLab support (<%= EE::CUSTOMER_SUPPORT_URL %>).
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
%p %p
Click #{link_to('here', EE::SUBSCRIPTIONS_PLANS_URL)} to purchase more minutes. Click #{link_to('here', EE::SUBSCRIPTIONS_PLANS_URL)} to purchase more minutes.
%p %p
If you need assistance, please contact #{link_to('GitLab support', 'https://support.gitlab.com')}. If you need assistance, please contact #{link_to('GitLab support', EE::CUSTOMER_SUPPORT_URL)}.
...@@ -3,4 +3,4 @@ quota for "<%= @namespace_name %>" is below <%= @percentage_of_available_mins %> ...@@ -3,4 +3,4 @@ quota for "<%= @namespace_name %>" is below <%= @percentage_of_available_mins %>
Please visit <%= EE::SUBSCRIPTIONS_PLANS_URL %> to purchase more minutes. Please visit <%= EE::SUBSCRIPTIONS_PLANS_URL %> to purchase more minutes.
If you need assistance, please contact GitLab support (https://support.gitlab.com). If you need assistance, please contact GitLab support (<%= EE::CUSTOMER_SUPPORT_URL %>).
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
- if @group.actual_plan - if @group.actual_plan
.center .center
- support_link = link_to s_("BillingPlans|Contact Support"), "https://support.gitlab.com" - support_link = link_to s_("BillingPlans|Contact Support"), EE::CUSTOMER_SUPPORT_URL
= s_("BillingPlans|If you would like to downgrade your plan please %{support_link}.").html_safe % { support_link: support_link } = s_("BillingPlans|If you would like to downgrade your plan please %{support_link}.").html_safe % { support_link: support_link }
- current_plan = subscription_plan_info(plans_data, namespace.actual_plan_name) - current_plan = subscription_plan_info(plans_data, namespace.actual_plan_name)
- support_link = link_to s_("BillingPlans|Contact Support"), "https://support.gitlab.com" - support_link = link_to s_("BillingPlans|Contact Support"), EE::CUSTOMER_SUPPORT_URL
- if current_plan - if current_plan
= render 'shared/billings/billing_plan_header', namespace: namespace, plan: current_plan = render 'shared/billings/billing_plan_header', namespace: namespace, plan: current_plan
......
...@@ -4,4 +4,5 @@ module EE ...@@ -4,4 +4,5 @@ module EE
SUBSCRIPTIONS_URL = 'https://customers.gitlab.com'.freeze SUBSCRIPTIONS_URL = 'https://customers.gitlab.com'.freeze
SUBSCRIPTIONS_PLANS_URL = "#{SUBSCRIPTIONS_URL}/plans".freeze SUBSCRIPTIONS_PLANS_URL = "#{SUBSCRIPTIONS_URL}/plans".freeze
SUBSCRIPTIONS_MORE_MINUTES_URL = "#{SUBSCRIPTIONS_URL}/buy_pipeline_minutes".freeze SUBSCRIPTIONS_MORE_MINUTES_URL = "#{SUBSCRIPTIONS_URL}/buy_pipeline_minutes".freeze
CUSTOMER_SUPPORT_URL = 'https://support.gitlab.com'.freeze
end end
...@@ -100,7 +100,7 @@ describe 'Billing plan pages', :feature do ...@@ -100,7 +100,7 @@ describe 'Billing plan pages', :feature do
page.within('.content') do page.within('.content') do
expect(page).to have_link('Upgrade plan', href: external_upgrade_url(namespace, bronze_plan)) expect(page).to have_link('Upgrade plan', href: external_upgrade_url(namespace, bronze_plan))
expect(page).to have_content('downgrade your plan') expect(page).to have_content('downgrade your plan')
expect(page).to have_link('Contact Support', href: 'https://support.gitlab.com') expect(page).to have_link('Contact Support', href: EE::CUSTOMER_SUPPORT_URL)
end end
end end
end end
...@@ -126,7 +126,7 @@ describe 'Billing plan pages', :feature do ...@@ -126,7 +126,7 @@ describe 'Billing plan pages', :feature do
page.within('.content') do page.within('.content') do
expect(page).not_to have_link('Upgrade plan') expect(page).not_to have_link('Upgrade plan')
expect(page).to have_content('downgrade your plan') expect(page).to have_content('downgrade your plan')
expect(page).to have_link('Contact Support', href: 'https://support.gitlab.com') expect(page).to have_link('Contact Support', href: EE::CUSTOMER_SUPPORT_URL)
end end
end end
end end
......
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