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
9c8e6681
Commit
9c8e6681
authored
Jul 04, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: standard user welcome page
parent
96492a89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
app/views/dashboard/projects/_blank_state_welcome.html.haml
app/views/dashboard/projects/_blank_state_welcome.html.haml
+54
-0
No files found.
app/views/dashboard/projects/_blank_state_welcome.html.haml
0 → 100644
View file @
9c8e6681
-
publicish_project_count
=
ProjectsFinder
.
new
(
current_user:
current_user
).
execute
.
count
-
if
current_user
.
can_create_group?
.blank-state.clearfix
.col-md-3
.col-md-3.blank-state-icon
=
custom_icon
(
"add_new_group"
,
size:
50
)
.col-md-3.blank-state-body
%h3
.blank-state-title
Create a group
%p
.blank-state-text
Groups are a great way to organise projects and people.
=
link_to
new_group_path
,
class:
"btn btn-new"
do
New group
.col-md-3
.blank-state.clearfix
.col-md-3
.col-md-3.blank-state-icon
=
custom_icon
(
"project"
,
size:
50
)
.col-md-3.blank-state-body
%h3
.blank-state-title
Create a project
%p
.blank-state-text
-
if
current_user
.
can_create_project?
You don't have access to any projects right now.
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
.col-md-3
-
if
publicish_project_count
>
0
.blank-state.clearfix
.col-md-3
.col-md-3.blank-state-icon
=
custom_icon
(
"ee_audit_events"
,
size:
50
)
.col-md-3.blank-state-body
%h3
.blank-state-title
Explore public projects
%p
.blank-state-text
There are
=
number_with_delimiter
(
publicish_project_count
)
public projects on this server.
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
.col-md-3
\ 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