Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
24ee0715
Commit
24ee0715
authored
Aug 07, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed Temporary URL part
parent
39d4847d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
app/helpers/license_helper.rb
app/helpers/license_helper.rb
+5
-2
app/views/shared/promotions/_promotion_link_project.html.haml
...views/shared/promotions/_promotion_link_project.html.haml
+5
-1
No files found.
app/helpers/license_helper.rb
View file @
24ee0715
...
...
@@ -67,9 +67,12 @@ module LicenseHelper
uri
.
to_s
end
# Temporary URL for promotions - later `group_billings_path(group)` or `profile_billings_path`
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
def
show_promotions?
...
...
app/views/shared/promotions/_promotion_link_project.html.haml
View file @
24ee0715
...
...
@@ -7,7 +7,11 @@
-
owner
=
@project
.
namespace
.
owner
%p
Contact owner
#{
link_to
(
simple_sanitize
(
owner
.
name
),
user_path
(
owner
))
}
to upgrade the license.
-
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
%p
Contact your Administrator to upgrade your license.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment