Skip to content
Snippets Groups Projects

BE: Allow customers to extend or reactivate their trial on gitlab.com [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Merged Qingyu Zhao requested to merge 290278-allow-extend-or-reactivate-trial-on-gitlab-com into master
All threads resolved!
2 files
+ 16
41
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -31,28 +31,3 @@
@@ -31,28 +31,3 @@
- if namespace.eligible_for_trial?
- if namespace.eligible_for_trial?
- glm_content = namespace_for_user ? 'user-billing' : 'group-billing'
- glm_content = namespace_for_user ? 'user-billing' : 'group-billing'
%p= link_to 'Start your free trial', new_trial_registration_path(glm_source: 'gitlab.com', glm_content: glm_content), class: 'btn btn-confirm gl-button'
%p= link_to 'Start your free trial', new_trial_registration_path(glm_source: 'gitlab.com', glm_content: glm_content), class: 'btn btn-confirm gl-button'
- if namespace.can_extend?
%br
%br
= 'In active trial, user can Extend trial'
%br
%br
%br
- if namespace.can_reactivate?
= 'Has terminated trial and have not been extended/reactivated, user can Reactive trial'
%br
%br
%br
- if true
= form_tag extend_reactivate_trials_path, :method => :put do
= text_field_tag "namespace_id", "#{namespace.id}"
= text_field_tag "trial_extension_type", "1"
= submit_tag "ExtendTrial"
%br
- if true
= form_tag extend_reactivate_trials_path, :method => :put do
= text_field_tag "namespace_id", "#{namespace.id}"
= text_field_tag "trial_extension_type", "2"
= submit_tag "ReactivateTrial"
%br
Loading