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
b2c9d159
Commit
b2c9d159
authored
Sep 21, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed Var Setup
parent
f661921c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ee/app/views/shared/promotions/_promotion_link_project.html.haml
...views/shared/promotions/_promotion_link_project.html.haml
+6
-6
No files found.
ee/app/views/shared/promotions/_promotion_link_project.html.haml
View file @
b2c9d159
-
short_form
=
local_assigns
.
fetch
:short_form
,
false
-
short_form
=
local_assigns
.
fetch
:short_form
,
false
-
if
current_application_settings
.
should_check_namespace_plan?
-
if
current_application_settings
.
should_check_namespace_plan?
-
group
=
@project
&
.
group
||
@group
-
namespace
=
@project
&
.
namespace
||
@group
-
if
(
@project
&&
can?
(
current_user
,
:admin_namespace
,
@project
.
namespace
))
||
(
@group
&&
can?
(
current_user
,
:admin_group
,
@group
)
)
-
if
can?
(
current_user
,
:admin_namespace
,
namespace
)
=
link_to
'Upgrade your plan'
,
upgrade_plan_url
,
class:
'btn btn-primary'
=
link_to
'Upgrade your plan'
,
upgrade_plan_url
,
class:
'btn btn-primary'
-
elsif
group
-
elsif
namespace
.
is_a?
(
Group
)
%p
Contact an owner of group
#{
group
.
name
}
to upgrade the plan.
%p
Contact an owner of group
#{
namespace
.
name
}
to upgrade the plan.
-
els
if
@project
-
els
e
-
owner
=
@project
.
namespace
.
owner
-
owner
=
namespace
.
owner
%p
Contact owner
#{
link_to
(
owner
.
name
,
user_path
(
owner
))
}
to upgrade the plan.
%p
Contact owner
#{
link_to
(
owner
.
name
,
user_path
(
owner
))
}
to upgrade the plan.
-
elsif
current_user
&
.
admin?
-
elsif
current_user
&
.
admin?
-
if
License
.
current
&
.
expired?
-
if
License
.
current
&
.
expired?
...
...
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