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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
bd465275
Commit
bd465275
authored
May 11, 2019
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve CE/EE diffs in zero_authorized_projects
Part of single codebase changes.
parent
825b2bda
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
app/helpers/dashboard_helper.rb
app/helpers/dashboard_helper.rb
+4
-0
app/views/dashboard/projects/_zero_authorized_projects.html.haml
...ws/dashboard/projects/_zero_authorized_projects.html.haml
+10
-5
spec/helpers/dashboard_helper_spec.rb
spec/helpers/dashboard_helper_spec.rb
+6
-0
No files found.
app/helpers/dashboard_helper.rb
View file @
bd465275
...
...
@@ -21,6 +21,10 @@ module DashboardHelper
links
.
any?
{
|
link
|
dashboard_nav_link?
(
link
)
}
end
def
has_start_trial?
false
end
private
def
get_dashboard_nav_links
...
...
app/views/dashboard/projects/_zero_authorized_projects.html.haml
View file @
bd465275
.blank-state-parent-container
.blank-state-parent-container
{
class:
(
'has-start-trial-container'
if
has_start_trial?
)
}
.section-container.section-welcome
{
class:
"#{ 'section-admin-welcome' if current_user.admin? }"
}
.container.section-body
.row
...
...
@@ -7,7 +7,12 @@
Welcome to GitLab
%p
.blank-state-text
Code, test, and deploy together
.blank-state-row
%div
{
class:
(
'column-large'
if
has_start_trial?
)
}
-
if
current_user
.
admin?
=
render
"blank_state_admin_welcome"
-
else
=
render
"blank_state_welcome"
-
if
has_start_trial?
.column-small
=
render_if_exists
"blank_state_ee_trial"
spec/helpers/dashboard_helper_spec.rb
View file @
bd465275
...
...
@@ -21,4 +21,10 @@ describe DashboardHelper do
expect
(
helper
.
dashboard_nav_links
).
not_to
include
(
:activity
,
:milestones
)
end
end
describe
'.has_start_trial?'
do
subject
{
helper
.
has_start_trial?
}
it
{
is_expected
.
to
eq
(
false
)
}
end
end
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