Commit 6199360e authored by Jackie Fraser's avatar Jackie Fraser

Change "Contact Sales to upgrade" link on License

parent 1c386aaa
......@@ -18,8 +18,8 @@
%strong= @license.plan.capitalize
- unless @license.ultimate?
= ' - '
= link_to _('How to upgrade'),
help_page_path('subscriptions/self_managed/index.md', anchor: 'upgrade-your-subscription-tier'),
= link_to _('Contact Sales to upgrade'),
'https://about.gitlab.com/sales/?inapplink=contactsalessm',
class: 'inline-link',
target: :_blank,
rel: :noreferrer
......
......@@ -11,22 +11,22 @@ RSpec.describe 'admin/licenses/_info' do
context 'when plan can be upgraded' do
let(:license) { create(:license, plan: License::STARTER_PLAN) }
it 'shows "How to upgrade" link' do
it 'shows "Contact Sales to upgrade" link' do
render
expect(rendered).to have_content('Plan: Starter - How to upgrade')
expect(rendered).to have_link('How to upgrade')
expect(rendered).to have_content('Plan: Starter - Contact Sales to upgrade')
expect(rendered).to have_link('Contact Sales to upgrade')
end
end
context 'when plan can not be upgraded' do
let(:license) { create(:license, plan: License::ULTIMATE_PLAN) }
it 'does not show "How to upgrade" link' do
it 'does not show "Contact Sales to upgrade" link' do
render
expect(rendered).to have_content('Plan: Ultimate')
expect(rendered).not_to have_link('How to upgrade')
expect(rendered).not_to have_link('Contact Sales to upgrade')
end
end
end
......
......@@ -7126,6 +7126,9 @@ msgstr ""
msgid "Consistency guarantee method"
msgstr ""
msgid "Contact Sales to upgrade"
msgstr ""
msgid "Contact sales to upgrade"
msgstr ""
......@@ -13780,9 +13783,6 @@ msgstr ""
msgid "How many users will be evaluating the trial?"
msgstr ""
msgid "How to upgrade"
msgstr ""
msgid "However, you are already a member of this %{member_source}. Sign in using a different account to accept the invitation."
msgstr ""
......
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