Skip to content
Snippets Groups Projects
Commit faf9e283 authored by Kamil Trzciński's avatar Kamil Trzciński :speech_balloon:
Browse files

Merge branch 'free-trial-cta' into 'master'

Update Free trial CTA from dashboard

See merge request !90860
parents 2a7146e2 5d886d2e
No related branches found
No related tags found
1 merge request!90860Update Free trial CTA from dashboard
Pipeline #574127346 failed
Pipeline: GitLab

#574143835

    ......@@ -148,10 +148,6 @@ def show_ultimate_trial?(user, callout = ULTIMATE_TRIAL)
    def show_ultimate_trial_suitable_env?
    ::Gitlab.com? && !::Gitlab::Database.read_only?
    end
    def callouts_trials_link_url
    new_trial_registration_path(glm_source: 'gitlab.com', glm_content: 'gold-callout')
    end
    end
    end
    end
    ......@@ -15,7 +15,7 @@
    %p
    %span= _('Try all GitLab has to offer for 30 days.')
    %span.d-none.d-sm-inline= _('No credit card required.')
    = link_to _('Start your free trial'), callouts_trials_link_url, class: "btn btn-confirm gl-button mt-2 mt-sm-0 #{button_css_class}", target: '_blank', rel: 'noopener noreferrer', data: { track_action: 'click_button', track_label: 'start_your_trial', track_property: banner_title }
    = link_to _('Start your free trial'), new_trial_path, class: "btn btn-confirm gl-button mt-2 mt-sm-0 #{button_css_class}", target: '_blank', rel: 'noopener noreferrer', data: { track_action: 'click_button', track_label: 'start_your_trial', track_property: banner_title }
    - if is_dismissable
    = render Pajamas::ButtonComponent.new(category: :tertiary,
    icon: 'close',
    ......
    ......@@ -419,11 +419,5 @@
    it { is_expected.to eq(false) }
    end
    end
    describe '#callouts_trials_link_url' do
    it 'returns value of glm_source is gitlab.com' do
    expect(helper.send(:callouts_trials_link_url)).to eq(callouts_trials_link_path)
    end
    end
    end
    end
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment