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
52080f74
Commit
52080f74
authored
Jun 01, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new icons to group page layout nav
parent
5e9e9a1e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
23 deletions
+97
-23
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+21
-0
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+3
-9
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+6
-6
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+10
-8
app/views/shared/icons/_commits.svg
app/views/shared/icons/_commits.svg
+10
-0
app/views/shared/icons/_files.svg
app/views/shared/icons/_files.svg
+17
-0
app/views/shared/icons/_pipelines.svg
app/views/shared/icons/_pipelines.svg
+10
-0
app/views/shared/icons/_project.svg
app/views/shared/icons/_project.svg
+10
-0
app/views/shared/icons/_wiki.svg
app/views/shared/icons/_wiki.svg
+10
-0
No files found.
app/assets/stylesheets/framework/nav.scss
View file @
52080f74
...
...
@@ -304,6 +304,19 @@
border-bottom
:
none
;
height
:
51px
;
svg
{
position
:
relative
;
top
:
2px
;
margin-right
:
2px
;
height
:
15px
;
width
:
auto
;
path
,
polygon
{
fill
:
$layout-link-gray
;
}
}
.fade-right
{
@include
fade
(
left
,
rgba
(
250
,
250
,
250
,
0
.4
)
,
$background-color
);
right
:
0
;
...
...
@@ -325,9 +338,17 @@
}
&
.active
{
a
,
i
{
color
:
$black
;
}
svg
{
path
,
polygon
{
fill
:
$black
;
}
}
}
.badge
{
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
52080f74
%ul
.nav.nav-sidebar
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
class:
"
#{
project_tab_class
}
home"
})
do
=
link_to
dashboard_projects_path
,
title:
'Projects'
,
class:
'dashboard-shortcuts-projects'
do
=
icon
(
'bookmark fw
'
)
=
navbar_icon
(
'project
'
)
.nav-link-text
Projects
=
nav_link
(
controller: :todos
)
do
...
...
@@ -11,7 +11,6 @@
Todos
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
class:
'dashboard-shortcuts-activity'
,
title:
'Activity'
do
<
<<<<<<
e6daf1f899b412ded9a16674865b09f31fc7c75a
=
icon
(
'dashboard fw'
)
.nav-link-text
Activity
...
...
@@ -27,11 +26,8 @@
Milestones
=
nav_link
(
path:
'dashboard#issues'
)
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
do
=
icon
(
'exclamation-circle fw'
)
.nav-link-text
==
=====
=
navbar_icon
(
'activity'
)
%span
.nav-link-text
Activity
=
nav_link
(
controller:
[
:groups
,
'groups/milestones'
,
'groups/group_members'
])
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
do
...
...
@@ -46,12 +42,10 @@
=
nav_link
(
path:
'dashboard#issues'
)
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
do
=
navbar_icon
(
'issues'
)
%span
>
>>>>>> Start adding SVG icons
Issues
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'dashboard-shortcuts-merge_requests'
do
=
icon
(
'tasks fw
'
)
=
navbar_icon
(
'mr
'
)
.nav-link-text
Merge Requests
=
nav_link
(
controller: :snippets
)
do
...
...
app/views/layouts/nav/_group.html.haml
View file @
52080f74
...
...
@@ -5,36 +5,36 @@
.fade-left
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
=
icon
(
'group fw
'
)
=
navbar_icon
(
'group
'
)
%span
Group
=
nav_link
(
path:
'groups#activity'
)
do
=
link_to
activity_group_path
(
@group
),
title:
'Activity'
do
=
icon
(
'dashboard fw
'
)
=
navbar_icon
(
'activity
'
)
%span
Activity
=
nav_link
(
controller:
[
:group
,
:milestones
])
do
=
link_to
group_milestones_path
(
@group
),
title:
'Milestones'
do
=
icon
(
'clock-o fw
'
)
=
navbar_icon
(
'milestones
'
)
%span
Milestones
=
nav_link
(
path:
'groups#issues'
)
do
=
link_to
issues_group_path
(
@group
),
title:
'Issues'
do
=
icon
(
'exclamation-circle fw
'
)
=
navbar_icon
(
'issues
'
)
%span
Issues
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.badge.count
=
number_with_delimiter
(
issues
.
count
)
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
icon
(
'tasks fw
'
)
=
navbar_icon
(
'mr
'
)
%span
Merge Requests
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.badge.count
=
number_with_delimiter
(
merge_requests
.
count
)
=
nav_link
(
controller:
[
:group_members
])
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
icon
(
'users fw
'
)
=
navbar_icon
(
'members
'
)
%span
Members
.fade-right
app/views/layouts/nav/_project.html.haml
View file @
52080f74
...
...
@@ -24,17 +24,19 @@
.fade-left
=
nav_link
(
path:
'projects#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-project'
do
=
icon
(
'bookmark fw
'
)
=
navbar_icon
(
'project
'
)
%span
Project
=
nav_link
(
path:
'projects#activity'
)
do
=
link_to
activity_project_path
(
@project
),
title:
'Activity'
,
class:
'shortcuts-project-activity'
do
=
icon
(
'dashboard fw
'
)
=
navbar_icon
(
'activity
'
)
%span
Activity
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare repositories tags branches releases network)
)
do
=
link_to
project_files_path
(
@project
),
title:
'
Files
'
,
class:
'shortcuts-tree'
do
=
link_to
project_files_path
(
@project
),
title:
'
Code
'
,
class:
'shortcuts-tree'
do
=
icon
(
'code fw'
)
%span
Code
...
...
@@ -42,7 +44,7 @@
-
if
project_nav_tab?
:pipelines
=
nav_link
(
controller: :pipelines
)
do
=
link_to
project_pipelines_path
(
@project
),
title:
'Pipelines'
,
class:
'shortcuts-pipelines'
do
=
icon
(
'ship fw
'
)
=
navbar_icon
(
'pipelines
'
)
%span
Pipelines
...
...
@@ -63,14 +65,14 @@
-
if
project_nav_tab?
:milestones
=
nav_link
(
controller: :milestones
)
do
=
link_to
namespace_project_milestones_path
(
@project
.
namespace
,
@project
),
title:
'Milestones'
do
=
icon
(
'clock-o fw
'
)
=
navbar_icon
(
'milestones
'
)
%span
Milestones
-
if
project_nav_tab?
:issues
=
nav_link
(
controller: :issues
)
do
=
link_to
url_for_project_issues
(
@project
,
only_path:
true
),
title:
'Issues'
,
class:
'shortcuts-issues'
do
=
icon
(
'exclamation-circle fw
'
)
=
navbar_icon
(
'issues
'
)
%span
Issues
-
if
@project
.
default_issues_tracker?
...
...
@@ -79,7 +81,7 @@
-
if
project_nav_tab?
:merge_requests
=
nav_link
(
controller: :merge_requests
)
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
),
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
=
icon
(
'tasks fw
'
)
=
navbar_icon
(
'mr
'
)
%span
Merge Requests
%span
.badge.count.merge_counter
=
number_with_delimiter
(
@project
.
merge_requests
.
opened
.
count
)
...
...
@@ -94,7 +96,7 @@
-
if
project_nav_tab?
:wiki
=
nav_link
(
controller: :wikis
)
do
=
link_to
get_project_wiki_path
(
@project
),
title:
'Wiki'
,
class:
'shortcuts-wiki'
do
=
icon
(
'book fw
'
)
=
navbar_icon
(
'wiki
'
)
%span
Wiki
...
...
app/views/shared/icons/_commits.svg
0 → 100644
View file @
52080f74
<?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>
Pasted Image 240
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Page-1"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<path
d=
"M3,8 C3,5.951 4.236,4.194 6,3.422 L6,0 L1,0 C0.448,0 0,0.448 0,1 L0,15 C0,15.552 0.448,16 1,16 L6,16 L6,12.578 C4.236,11.806 3,10.049 3,8 M7,12.899 L7,16 L9,16 L9,12.899 C8.677,12.965 8.343,13 8,13 C7.657,13 7.323,12.965 7,12.899 M15,0 L10,0 L10,3.422 C11.764,4.194 13,5.951 13,8 C13,10.049 11.764,11.806 10,12.578 L10,16 L15,16 C15.552,16 16,15.552 16,15 L16,1 C16,0.448 15.552,0 15,0 M10,8 C10,9.105 9.105,10 8,10 C6.895,10 6,9.105 6,8 C6,6.895 6.895,6 8,6 C9.105,6 10,6.895 10,8 M4,8 C4,10.209 5.791,12 8,12 C10.209,12 12,10.209 12,8 C12,5.791 10.209,4 8,4 C5.791,4 4,5.791 4,8 M9,3.101 L9,0 L7,0 L7,3.101 C7.323,3.035 7.657,3 8,3 C8.343,3 8.677,3.035 9,3.101"
id=
"Pasted-Image-240"
fill=
"#7E7D7D"
></path>
</g>
</svg>
\ No newline at end of file
app/views/shared/icons/_files.svg
0 → 100644
View file @
52080f74
<?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>
Pasted Image 237
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Page-1"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"Pasted-Image-237"
>
<path
d=
"M15.1111,16 C15.6021,16 16.0001,15.602 16.0001,15.111 L16.0001,4.444 C15.5341,3.983 12.0671,0.378 11.5551,0 L0.8891,0 C0.3981,0 0.0001,0.398 0.0001,0.889 L0.0001,15.111 C0.0001,15.602 0.3981,16 0.8891,16 L15.1111,16 M14.0001,14.111 L1.8891,14.111 L1.8891,2 L10.8131,2 C11.4451,2.42 13.5811,4.555 14.0001,5.187 L14.0001,14.111"
id=
"Fill-1"
fill=
"#7E7D7D"
></path>
<path
d=
"M0.889,0 C0.398,0 0,0.398 0,0.889 L0,15.111 C0,15.602 0.398,16 0.889,16 L15.111,16 C15.602,16 16,15.602 16,15.111 L16,4.445 C15.534,3.983 12.068,0.377 11.555,0 L0.889,0 L0.889,0 Z M1.889,2 L10.813,2 C11.446,2.42 13.581,4.554 14,5.187 L14,14.111 L1.889,14.111 L1.889,2 L1.889,2 Z"
id=
"Clip-4"
></path>
<polygon
id=
"Fill-6"
fill=
"#7E7D7D"
points=
"9 7 11 7 11 2 9 2"
></polygon>
<polygon
id=
"Clip-9"
points=
"9 7 11 7 11 2.001 9 2.001"
></polygon>
<polygon
id=
"Fill-11"
fill=
"#7E7D7D"
points=
"10 7 15.444 7 15.444 5 10 5"
></polygon>
<polygon
id=
"Clip-14"
points=
"10 7 15.444 7 15.444 5 10 5"
></polygon>
</g>
</g>
</svg>
\ No newline at end of file
app/views/shared/icons/_pipelines.svg
0 → 100644
View file @
52080f74
<?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>
Pasted Image 246
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Page-1"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<path
d=
"M12.5,14 C11.672,14 11,13.328 11,12.5 C11,11.672 11.672,11 12.5,11 C13.328,11 14,11.672 14,12.5 C14,13.328 13.328,14 12.5,14 M12.5,9 L3.5,9 C1.567,9 0,10.567 0,12.5 C0,14.433 1.567,16 3.5,16 L12.5,16 C14.433,16 16,14.433 16,12.5 C16,10.567 14.433,9 12.5,9 M3.5,2 C4.328,2 5,2.672 5,3.5 C5,4.328 4.328,5 3.5,5 C2.672,5 2,4.328 2,3.5 C2,2.672 2.672,2 3.5,2 M3.5,7 L12.5,7 C14.433,7 16,5.433 16,3.5 C16,1.567 14.433,0 12.5,0 L3.5,0 C1.567,0 0,1.567 0,3.5 C0,5.433 1.567,7 3.5,7"
id=
"Pasted-Image-246"
fill=
"#303030"
></path>
</g>
</svg>
\ No newline at end of file
app/views/shared/icons/_project.svg
0 → 100644
View file @
52080f74
<?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/_wiki.svg
0 → 100644
View file @
52080f74
<?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>
Pasted Image 241
</title>
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Page-1"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<path
d=
"M2.004,12.9999459 L3.939,12.9999459 L3.939,4.99994585 L2.004,4.99994585 L2.004,12.9999459 Z M7.017,9.99994585 L13.018,9.99994585 L13.018,8.99994585 L7.017,8.99994585 L7.017,9.99994585 Z M7.017,7.99994585 L13.018,7.99994585 L13.018,6.99994585 L7.017,6.99994585 L7.017,7.99994585 Z M7.017,5.99994585 L13.018,5.99994585 L13.018,4.99994585 L7.017,4.99994585 L7.017,5.99994585 Z M14.754,-5.41499267e-05 L4.938,-5.41499267e-05 C4.386,-5.41499267e-05 3.938,0.44794585 3.938,0.99994585 L3.938,2.99994585 L1,2.99994585 C0.448,2.99994585 0,3.44794585 0,3.99994585 L0,12.9999459 C0.037,13.4999459 -0.25,16.0509459 3.938,15.9999459 L12.408,15.9999459 C12.408,15.9999459 15.754,15.9169459 15.754,13.9999459 L15.754,0.99994585 C15.754,0.44794585 15.306,-5.41499267e-05 14.754,-5.41499267e-05 L14.754,-5.41499267e-05 Z"
id=
"Pasted-Image-241"
fill=
"#7E7D7D"
></path>
</g>
</svg>
\ 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