Commit ee739f7c authored by Alper Akgun's avatar Alper Akgun

Update billing page trial CTAs

parent 1c1eda42
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
%p.mb-0 %p.mb-0
%span= _('Try all GitLab has to offer for 30 days.') %span= _('Try all GitLab has to offer for 30 days.')
%span.d-none.d-sm-inline= _('No credit card required.') %span.d-none.d-sm-inline= _('No credit card required.')
= link_to _('Start your trial'), "#{EE::SUBSCRIPTIONS_URL}/trials/new?gl_com=true", class: "btn btn-primary mt-2 mt-sm-0 #{button_css_class}", target: '_blank' = link_to _('Start your trial'), new_trial_registration_path, class: "btn btn-primary mt-2 mt-sm-0 #{button_css_class}", target: '_blank'
- if is_dismissable - if is_dismissable
%button.btn.btn-default.close.js-close{ type: 'button', %button.btn.btn-default.close.js-close{ type: 'button',
......
- parent_group = local_assigns[:parent_group] - parent_group = local_assigns[:parent_group]
.mb-2= render_billings_gold_trial(current_user, parent_group || namespace)
- if namespace_for_user?(namespace) - if namespace_for_user?(namespace)
= render_if_exists 'trials/banner', namespace: namespace = render_if_exists 'trials/banner', namespace: namespace
......
---
title: Update billing page trial CTAs
merge_request: 20383
author:
type: changed
...@@ -85,8 +85,6 @@ describe 'Billing plan pages', :feature do ...@@ -85,8 +85,6 @@ describe 'Billing plan pages', :feature do
context 'users profile billing page' do context 'users profile billing page' do
let(:page_path) { profile_billings_path } let(:page_path) { profile_billings_path }
it_behaves_like 'billings gold trial callout'
context 'on free' do context 'on free' do
let(:plan) { free_plan } let(:plan) { free_plan }
...@@ -177,8 +175,6 @@ describe 'Billing plan pages', :feature do ...@@ -177,8 +175,6 @@ describe 'Billing plan pages', :feature do
context 'top-most group' do context 'top-most group' do
let(:page_path) { group_billings_path(namespace) } let(:page_path) { group_billings_path(namespace) }
it_behaves_like 'billings gold trial callout'
context 'on bronze' do context 'on bronze' do
let(:plan) { bronze_plan } let(:plan) { bronze_plan }
...@@ -221,8 +217,6 @@ describe 'Billing plan pages', :feature do ...@@ -221,8 +217,6 @@ describe 'Billing plan pages', :feature do
let(:page_path) { group_billings_path(subgroup2) } let(:page_path) { group_billings_path(subgroup2) }
let(:namespace) { group } let(:namespace) { group }
it_behaves_like 'billings gold trial callout'
context 'on bronze' do context 'on bronze' do
let(:plan) { bronze_plan } let(:plan) { bronze_plan }
......
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