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
3b00b038
Commit
3b00b038
authored
Jul 06, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move welcome pages to individual partials
parent
d5a1fd50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
47 deletions
+12
-47
app/views/dashboard/projects/_zero_authorized_projects.html.haml
...ws/dashboard/projects/_zero_authorized_projects.html.haml
+12
-47
No files found.
app/views/dashboard/projects/_zero_authorized_projects.html.haml
View file @
3b00b038
-
publicish_project_count
=
ProjectsFinder
.
new
(
current_user:
current_user
).
execute
.
count
.blank-state.blank-state-welcome
%h2
.blank-state-welcome-title
Welcome to GitLab
%p
.blank-state-text
Code, test, and deploy together
-
if
current_user
.
can_create_group?
.blank-state
.blank-state-icon
=
custom_icon
(
"group"
,
size:
50
)
%h3
.blank-state-title
You can create a group for several dependent projects.
%p
.blank-state-text
Groups are the best way to manage projects and members.
=
link_to
new_group_path
,
class:
"btn btn-new"
do
New group
.blank-state
.blank-state-icon
=
custom_icon
(
"project"
,
size:
50
)
%h3
.blank-state-title
You don't have access to any projects right now
%p
.blank-state-text
-
if
current_user
.
can_create_project?
You can create up to
%strong
=
number_with_delimiter
(
current_user
.
projects_limit
)
=
succeed
"."
do
=
"project"
.
pluralize
(
current_user
.
projects_limit
)
-
else
If you are added to a project, it will be displayed here.
-
if
current_user
.
can_create_project?
=
link_to
new_project_path
,
class:
"btn btn-new"
do
New project
-
if
publicish_project_count
>
0
.blank-state
.blank-state-icon
=
icon
(
"globe"
)
%h3
.blank-state-title
There are
=
number_with_delimiter
(
publicish_project_count
)
public projects on this server.
%p
.blank-state-text
Public projects are an easy way to allow everyone to have read-only access.
=
link_to
trending_explore_projects_path
,
class:
"btn btn-new"
do
Browse projects
.row.blank-state-parent-container
.col-md-6.section-container
.section-body.section-welcome
.blank-state.blank-state-welcome
%h2
.blank-state-welcome-title
Welcome to GitLab
%p
.blank-state-text
Code, test, and deploy together
-
if
current_user
.
admin?
=
render
"blank_state_admin_welcome"
-
else
=
render
"blank_state_welcome"
\ No newline at end of file
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