Commit 24ee0715 authored by Tim Zallmann's avatar Tim Zallmann

Removed Temporary URL part

parent 39d4847d
...@@ -67,9 +67,12 @@ module LicenseHelper ...@@ -67,9 +67,12 @@ module LicenseHelper
uri.to_s uri.to_s
end end
# Temporary URL for promotions - later `group_billings_path(group)` or `profile_billings_path`
def upgrade_plan_url def upgrade_plan_url
'https://about.gitlab.com/gitlab-com/' if (@project.owner.present? && @project.owner == @current_user)
profile_billings_path
else @project.group&.has_owner?(@current_user)
group_billings_path(@project.group)
end
end end
def show_promotions? def show_promotions?
......
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
- owner = @project.namespace.owner - owner = @project.namespace.owner
%p Contact owner #{ link_to(simple_sanitize(owner.name), user_path(owner)) } to upgrade the license. %p Contact owner #{ link_to(simple_sanitize(owner.name), user_path(owner)) } to upgrade the license.
- elsif current_user.admin? - elsif current_user.admin?
= link_to License.current&.expired? ? 'Buy GitLab Enterprise Edition' : 'Start GitLab Enterprise Edition trial', new_trial_url, class: 'btn btn-primary' = 'URL ' + upgrade_plan_url
- if License.current&.expired?
= link_to 'Buy GitLab Enterprise Edition', Gitlab::SUBSCRIPTIONS_PLANS_URL, class: 'btn btn-primary'
- else
= link_to 'Start GitLab Enterprise Edition trial', new_trial_url, class: 'btn btn-primary'
- else - else
%p %p
Contact your Administrator to upgrade your license. Contact your Administrator to upgrade your license.
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