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
iv
gitlab-ce
Commits
e26f8bf7
Commit
e26f8bf7
authored
Jun 24, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard projects blank state
parent
5d0b06a0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
82 deletions
+56
-82
app/assets/stylesheets/framework/blank.scss
app/assets/stylesheets/framework/blank.scss
+9
-2
app/assets/stylesheets/framework/common.scss
app/assets/stylesheets/framework/common.scss
+0
-15
app/views/dashboard/projects/_zero_authorized_projects.html.haml
...ws/dashboard/projects/_zero_authorized_projects.html.haml
+40
-47
app/views/dashboard/projects/index.html.haml
app/views/dashboard/projects/index.html.haml
+2
-1
app/views/shared/icons/_group.svg.erb
app/views/shared/icons/_group.svg.erb
+2
-7
app/views/shared/icons/_project.svg
app/views/shared/icons/_project.svg
+0
-10
app/views/shared/icons/_project.svg.erb
app/views/shared/icons/_project.svg.erb
+3
-0
No files found.
app/assets/stylesheets/framework/blank.scss
View file @
e26f8bf7
...
...
@@ -20,9 +20,12 @@
.blank-state-icon
{
padding-bottom
:
20px
;
color
:
$gray-darkest
;
font-size
:
56px
;
path
{
fill
:
$gray-darkest
;
path
,
polygon
{
fill
:
currentColor
;
}
}
...
...
@@ -37,6 +40,10 @@
margin-top
:
0
;
margin-bottom
:
$gl-padding
;
font-size
:
15px
;
>
strong
{
font-weight
:
600
;
}
}
.blank-state-welcome-title
{
...
...
app/assets/stylesheets/framework/common.scss
View file @
e26f8bf7
...
...
@@ -270,21 +270,6 @@ table {
}
}
.dashboard-intro-icon
{
float
:
left
;
text-align
:
center
;
font-size
:
32px
;
color
:
#aaa
;
width
:
60px
;
}
.dashboard-intro-text
{
display
:
inline-block
;
margin-left
:
-60px
;
padding-left
:
60px
;
width
:
100%
;
}
.btn-sign-in
{
text-shadow
:
none
;
...
...
app/views/dashboard/projects/_zero_authorized_projects.html.haml
View file @
e26f8bf7
-
publicish_project_count
=
ProjectsFinder
.
new
.
execute
(
current_user
).
count
%h3
.page-title
Welcome to GitLab!
%p
.light
Self hosted Git management application.
%hr
%div
.dashboard-intro-icon
%i
.fa.fa-bookmark-o
.dashboard-intro-text
%p
.slead
You don't have access to any projects right now.
%br
.blank-state.blank-state-welcome
%h2
.blank-state-welcome-title
Welcome to GitLab
%p
.blank-state-text
Code, test, and deploy together
.blank-state
.blank-state-icon
=
navbar_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
=
pluralize
(
number_with_delimiter
(
current_user
.
projects_limit
),
"project"
)
+
"."
%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_holder
=
link_to
new_project_path
,
class:
"btn btn-new"
do
=
icon
(
'plus'
)
New Project
New project
-
if
current_user
.
can_create_group?
%hr
%div
.dashboard-intro-icon
%i
.fa.fa-users
.dashboard-intro-text
%p
.slead
.blank-state
.blank-state-icon
=
navbar_icon
(
"group"
,
size:
50
)
%h3
.blank-state-title
You can create a group for several dependent projects.
%br
%p
.blank-state-text
Groups are the best way to manage projects and members.
.link_holder
=
link_to
new_group_path
,
class:
"btn btn-new"
do
%i
.fa.fa-plus
New Group
New group
-
if
publicish_project_count
>
0
%hr
%div
.dashboard-intro-icon
%i
.fa.fa-globe
.dashboard-intro-text
%p
.slead
.blank-state
.blank-state-icon
=
icon
(
"globe"
)
%h3
.blank-state-title
There are
%strong
=
number_with_delimiter
(
publicish_project_count
)
=
number_with_delimiter
(
publicish_project_count
)
public projects on this server.
%br
%p
.blank-state-text
Public projects are an easy way to allow everyone to have read-only access.
.link_holder
=
link_to
trending_explore_projects_path
,
class:
"btn btn-new"
do
Browse public
projects
Browse
projects
app/views/dashboard/projects/index.html.haml
View file @
e26f8bf7
...
...
@@ -5,7 +5,8 @@
-
page_title
"Projects"
-
header_title
"Projects"
,
dashboard_projects_path
=
render
'dashboard/projects_head'
-
if
@projects
.
any?
||
params
[
:filter_projects
]
=
render
'dashboard/projects_head'
-
if
@last_push
=
render
"events/event_last_push"
,
event:
@last_push
...
...
app/views/shared/icons/_group.svg
→
app/views/shared/icons/_group.svg
.erb
View file @
e26f8bf7
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width=
"16px"
height=
"16px"
viewBox=
"0 0 16 16"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 3.7.2 (28276) - http://www.bohemiancoding.com/sketch -->
<title>
Group
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<svg
width=
"
<%=
size
%>
"
height=
"
<%=
size
%>
"
viewBox=
"0 0 16 16"
>
<g
id=
"Page-1"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"Group"
fill=
"#303030"
>
<path
d=
"M15.6667,10.0105 L10.3337,10.0105 C10.1497,10.0105 9.9997,10.1775 9.9997,10.3845 L9.9997,15.6145 C9.9997,15.8215 10.1497,15.9885 10.3337,15.9885 L15.6667,15.9885 C15.8507,15.9885 15.9997,15.8215 15.9997,15.6145 L15.9997,10.3845 C15.9997,10.1775 15.8507,10.0105 15.6667,10.0105 L15.6667,10.0105 L15.6667,10.0105 Z M11.9997,14.0105 L13.9997,14.0105 L13.9997,12.0105 L11.9997,12.0105 L11.9997,14.0105 L11.9997,14.0105 Z"
id=
"Fill-11"
></path>
...
...
app/views/shared/icons/_project.svg
deleted
100644 → 0
View file @
5d0b06a0
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width=
"16px"
height=
"16px"
viewBox=
"0 0 16 16"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
<title>
Page 1
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Page-1"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<path
d=
"M6,6 L12,6 L12,5 L6,5 L6,6 Z M6,8 L12,8 L12,7 L6,7 L6,8 Z M6,10 L12,10 L12,9 L6,9 L6,10 Z M6,12 L12,12 L12,11 L6,11 L6,12 Z M4,6 L5,6 L5,5 L4,5 L4,6 Z M4,8 L5,8 L5,7 L4,7 L4,8 Z M4,10 L5,10 L5,9 L4,9 L4,10 Z M4,12 L5,12 L5,11 L4,11 L4,12 Z M13,3 L10,3 L10,4 L6,4 L6,3 L3,3 L3,13 L13,13 L13,3 Z M2,14 L14,14 L14,2 L2,2 L2,14 Z M1,0 C0.448,0 0,0.448 0,1 L0,15 C0,15.552 0.448,16 1,16 L15,16 C15.552,16 16,15.552 16,15 L16,1 C16,0.448 15.552,0 15,0 L1,0 Z"
fill=
"#7F7E7E"
></path>
</g>
</svg>
\ No newline at end of file
app/views/shared/icons/_project.svg.erb
0 → 100644
View file @
e26f8bf7
<svg
width=
"
<%=
size
%>
"
height=
"
<%=
size
%>
"
viewBox=
"0 0 16 16"
>
<path
d=
"M6,6 L12,6 L12,5 L6,5 L6,6 Z M6,8 L12,8 L12,7 L6,7 L6,8 Z M6,10 L12,10 L12,9 L6,9 L6,10 Z M6,12 L12,12 L12,11 L6,11 L6,12 Z M4,6 L5,6 L5,5 L4,5 L4,6 Z M4,8 L5,8 L5,7 L4,7 L4,8 Z M4,10 L5,10 L5,9 L4,9 L4,10 Z M4,12 L5,12 L5,11 L4,11 L4,12 Z M13,3 L10,3 L10,4 L6,4 L6,3 L3,3 L3,13 L13,13 L13,3 Z M2,14 L14,14 L14,2 L2,2 L2,14 Z M1,0 C0.448,0 0,0.448 0,1 L0,15 C0,15.552 0.448,16 1,16 L15,16 C15.552,16 16,15.552 16,15 L16,1 C16,0.448 15.552,0 15,0 L1,0 Z"
fill=
"#7F7E7E"
fill-rule=
"evenodd"
></path>
</svg>
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