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
Léo-Paul Géneau
gitlab-ce
Commits
05224ae6
Commit
05224ae6
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore sidebar tooltips and fix logo tooltip location
parent
09e712c0
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
207 additions
and
185 deletions
+207
-185
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+17
-9
app/assets/javascripts/sidebar.js.coffee
app/assets/javascripts/sidebar.js.coffee
+1
-0
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+95
-90
app/helpers/nav_helper.rb
app/helpers/nav_helper.rb
+8
-0
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+5
-5
app/views/layouts/ci/_page.html.haml
app/views/layouts/ci/_page.html.haml
+5
-5
app/views/layouts/nav/_admin.html.haml
app/views/layouts/nav/_admin.html.haml
+14
-14
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+9
-9
app/views/layouts/nav/_explore.html.haml
app/views/layouts/nav/_explore.html.haml
+4
-4
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+7
-7
app/views/layouts/nav/_group_settings.html.haml
app/views/layouts/nav/_group_settings.html.haml
+3
-3
app/views/layouts/nav/_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+10
-10
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+17
-17
app/views/layouts/nav/_project_settings.html.haml
app/views/layouts/nav/_project_settings.html.haml
+12
-12
No files found.
app/assets/javascripts/application.js.coffee
View file @
05224ae6
...
@@ -135,17 +135,25 @@ $ ->
...
@@ -135,17 +135,25 @@ $ ->
),
1
),
1
# Initialize tooltips
# Initialize tooltips
$
(
'body'
).
tooltip
(
{
$
(
'body'
).
tooltip
(
selector
:
'.has_tooltip, [data-toggle="tooltip"]
, .page-sidebar-collapsed .nav-sidebar a
'
selector
:
'.has_tooltip, [data-toggle="tooltip"]'
placement
:
(
_
,
el
)
->
placement
:
(
_
,
el
)
->
$el
=
$
(
el
)
$el
=
$
(
el
)
if
$el
.
attr
(
'id'
)
==
'js-shortcuts-home'
$el
.
data
(
'placement'
)
||
'bottom'
# Place the logo tooltip on the right when collapsed, bottom when expanded
)
$el
.
parents
(
'header'
).
hasClass
(
'header-collapsed'
)
and
'right'
or
'bottom'
else
$
(
'.header-logo .home'
).
tooltip
(
# Otherwise use the data-placement attribute, or 'bottom' if undefined
placement
:
(
_
,
el
)
->
$el
.
data
(
'placement'
)
or
'bottom'
$el
=
$
(
el
)
})
if
$
(
'.page-with-sidebar'
).
hasClass
(
'page-sidebar-collapsed'
)
then
'right'
else
'bottom'
container
:
'body'
)
$
(
'.page-with-sidebar'
).
tooltip
(
selector
:
'.sidebar-collapsed .nav-sidebar a, .sidebar-collapsed a.sidebar-user'
placement
:
'right'
container
:
'body'
)
# Form submitter
# Form submitter
$
(
'.trigger-submit'
).
on
'change'
,
->
$
(
'.trigger-submit'
).
on
'change'
,
->
...
...
app/assets/javascripts/sidebar.js.coffee
View file @
05224ae6
...
@@ -5,6 +5,7 @@ $(document).on("click", '.toggle-nav-collapse', (e) ->
...
@@ -5,6 +5,7 @@ $(document).on("click", '.toggle-nav-collapse', (e) ->
$
(
'.page-with-sidebar'
).
toggleClass
(
"
#{
collapsed
}
#{
expanded
}
"
)
$
(
'.page-with-sidebar'
).
toggleClass
(
"
#{
collapsed
}
#{
expanded
}
"
)
$
(
'header'
).
toggleClass
(
"header-collapsed header-expanded"
)
$
(
'header'
).
toggleClass
(
"header-collapsed header-expanded"
)
$
(
'.sidebar-wrapper'
).
toggleClass
(
"sidebar-collapsed sidebar-expanded"
)
$
(
'.toggle-nav-collapse i'
).
toggleClass
(
"fa-angle-right fa-angle-left"
)
$
(
'.toggle-nav-collapse i'
).
toggleClass
(
"fa-angle-right fa-angle-left"
)
$
.
cookie
(
"collapsed_nav"
,
$
(
'.page-with-sidebar'
).
hasClass
(
collapsed
),
{
path
:
'/'
})
$
.
cookie
(
"collapsed_nav"
,
$
(
'.page-with-sidebar'
).
hasClass
(
collapsed
),
{
path
:
'/'
})
)
)
app/assets/stylesheets/framework/sidebar.scss
View file @
05224ae6
.page-with-sidebar
{
.page-with-sidebar
{
padding-top
:
$header-height
;
transition-duration
:
.3s
;
.sidebar-wrapper
{
.sidebar-wrapper
{
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
...
@@ -14,19 +17,15 @@
...
@@ -14,19 +17,15 @@
.sidebar-wrapper
{
.sidebar-wrapper
{
z-index
:
99
;
z-index
:
99
;
background
:
$background-color
;
background
:
$background-color
;
transition-duration
:
.3s
;
}
}
.content-wrapper
{
.content-wrapper
{
min-height
:
100vh
;
width
:
100%
;
width
:
100%
;
padding
:
20px
;
padding
:
20px
;
background
:
#EAEBEC
;
.container-fluid
{
.container-fluid
{
background
:
#FFF
;
background
:
#FFF
;
padding
:
$gl-padding
;
padding
:
$gl-padding
;
min-height
:
90vh
;
&
.container-blank
{
&
.container-blank
{
background
:
none
;
background
:
none
;
...
@@ -36,6 +35,83 @@
...
@@ -36,6 +35,83 @@
}
}
}
}
.sidebar-wrapper
{
.header-logo
{
border-bottom
:
1px
solid
transparent
;
float
:
left
;
height
:
$header-height
;
width
:
$sidebar_width
;
position
:
fixed
;
z-index
:
999
;
overflow
:
hidden
;
transition-duration
:
.3s
;
a
{
float
:
left
;
height
:
$header-height
;
width
:
100%
;
padding
:
11px
0
11px
22px
;
overflow
:
hidden
;
outline
:
none
;
transition-duration
:
.3s
;
img
{
width
:
36px
;
height
:
36px
;
}
#tanuki-logo
,
img
{
float
:
left
;
}
.gitlab-text-container
{
width
:
230px
;
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
14px
;
font-size
:
19px
;
line-height
:
41px
;
font-weight
:
normal
;
}
}
}
&
:hover
{
background-color
:
#EEE
;
}
}
.sidebar-user
{
padding
:
9px
22px
;
position
:
fixed
;
bottom
:
40px
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
.username
{
margin-left
:
10px
;
width
:
$sidebar_width
-
2
*
10px
;
font-size
:
16px
;
line-height
:
34px
;
}
}
}
.tanuki-shape
{
transition
:
all
0
.8s
;
&
:hover
{
fill
:
rgb
(
255
,
255
,
255
);
transition
:
all
0
.1s
;
}
}
.nav-sidebar
{
.nav-sidebar
{
margin-top
:
14
+
$header-height
;
margin-top
:
14
+
$header-height
;
margin-bottom
:
100px
;
margin-bottom
:
100px
;
...
@@ -62,7 +138,7 @@
...
@@ -62,7 +138,7 @@
color
:
$gray
;
color
:
$gray
;
display
:
block
;
display
:
block
;
text-decoration
:
none
;
text-decoration
:
none
;
padding-left
:
2
2
px
;
padding-left
:
2
3
px
;
font-weight
:
normal
;
font-weight
:
normal
;
outline
:
none
;
outline
:
none
;
...
@@ -101,7 +177,6 @@
...
@@ -101,7 +177,6 @@
@mixin
expanded-sidebar
{
@mixin
expanded-sidebar
{
padding-left
:
$sidebar_width
;
padding-left
:
$sidebar_width
;
transition-duration
:
.3s
;
.sidebar-wrapper
{
.sidebar-wrapper
{
width
:
$sidebar_width
;
width
:
$sidebar_width
;
...
@@ -122,9 +197,8 @@
...
@@ -122,9 +197,8 @@
}
}
}
}
@mixin
folded-sidebar
{
@mixin
collapsed-sidebar
{
padding-left
:
60px
;
padding-left
:
$sidebar_collapsed_width
;
transition-duration
:
.3s
;
.sidebar-wrapper
{
.sidebar-wrapper
{
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
...
@@ -133,7 +207,7 @@
...
@@ -133,7 +207,7 @@
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
a
{
a
{
padding-left
:
12px
;
padding-left
:
(
$sidebar_collapsed_width
-
36
)
/
2
;
.gitlab-text-container
{
.gitlab-text-container
{
display
:
none
;
display
:
none
;
...
@@ -144,19 +218,23 @@
...
@@ -144,19 +218,23 @@
.nav-sidebar
{
.nav-sidebar
{
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
li
a
{
li
{
width
:
auto
;
a
{
span
{
span
{
display
:
none
;
display
:
none
;
}
}
}
}
}
}
}
.collapse-nav
a
{
.collapse-nav
a
{
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
}
}
.sidebar-user
{
.sidebar-user
{
padding-left
:
12px
;
padding-left
:
(
$sidebar_collapsed_width
-
36
)
/
2
;
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
.username
{
.username
{
...
@@ -187,11 +265,11 @@
...
@@ -187,11 +265,11 @@
@media
(
max-width
:
$screen-md-max
)
{
@media
(
max-width
:
$screen-md-max
)
{
.page-sidebar-collapsed
{
.page-sidebar-collapsed
{
@include
fold
ed-sidebar
;
@include
collaps
ed-sidebar
;
}
}
.page-sidebar-expanded
{
.page-sidebar-expanded
{
@include
fold
ed-sidebar
;
@include
collaps
ed-sidebar
;
}
}
.collapse-nav
{
.collapse-nav
{
...
@@ -201,83 +279,10 @@
...
@@ -201,83 +279,10 @@
@media
(
min-width
:
$screen-md-max
)
{
@media
(
min-width
:
$screen-md-max
)
{
.page-sidebar-collapsed
{
.page-sidebar-collapsed
{
@include
fold
ed-sidebar
;
@include
collaps
ed-sidebar
;
}
}
.page-sidebar-expanded
{
.page-sidebar-expanded
{
@include
expanded-sidebar
;
@include
expanded-sidebar
;
}
}
}
}
.sidebar-user
{
padding
:
9px
22px
;
position
:
fixed
;
bottom
:
40px
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
.username
{
margin-left
:
10px
;
width
:
$sidebar_width
-
2
*
10px
;
font-size
:
16px
;
line-height
:
34px
;
}
}
.sidebar-wrapper
{
.header-logo
{
border-bottom
:
1px
solid
transparent
;
float
:
left
;
height
:
$header-height
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
a
{
float
:
left
;
height
:
$header-height
;
width
:
100%
;
padding
:
10px
22px
;
overflow
:
hidden
;
outline
:
none
;
img
{
width
:
36px
;
height
:
36px
;
}
#tanuki-logo
,
img
{
float
:
left
;
}
.gitlab-text-container
{
width
:
230px
;
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
14px
;
font-size
:
19px
;
line-height
:
41px
;
font-weight
:
normal
;
}
}
}
&
:hover
{
background-color
:
#EEE
;
}
}
}
.tanuki-shape
{
transition
:
all
0
.8s
;
&
:hover
{
fill
:
rgb
(
255
,
255
,
255
);
transition
:
all
0
.1s
;
}
}
app/helpers/nav_helper.rb
View file @
05224ae6
...
@@ -4,6 +4,14 @@ module NavHelper
...
@@ -4,6 +4,14 @@ module NavHelper
end
end
def
nav_sidebar_class
def
nav_sidebar_class
if
nav_menu_collapsed?
"sidebar-collapsed"
else
"sidebar-expanded"
end
end
def
page_sidebar_class
if
nav_menu_collapsed?
if
nav_menu_collapsed?
"page-sidebar-collapsed"
"page-sidebar-collapsed"
else
else
...
...
app/views/layouts/_page.html.haml
View file @
05224ae6
.page-with-sidebar
{
class:
nav
_sidebar_class
}
.page-with-sidebar
{
class:
page
_sidebar_class
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
.sidebar-wrapper.nicescroll
.sidebar-wrapper.nicescroll
{
class:
nav_sidebar_class
}
.header-logo
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
do
=
brand_header_logo
=
brand_header_logo
.gitlab-text-container
.gitlab-text-container
%h3
GitLab
%h3
GitLab
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
.collapse-nav
.collapse-nav
=
render
partial:
'layouts/collapse_button'
=
render
partial:
'layouts/collapse_button'
-
if
current_user
-
if
current_user
=
link_to
current_user
,
class:
'sidebar-user'
do
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
do
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'
User activity
'
,
class:
'avatar avatar s36'
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'
Profile
'
,
class:
'avatar avatar s36'
.username
.username
=
current_user
.
username
=
current_user
.
username
.content-wrapper
.content-wrapper
...
...
app/views/layouts/ci/_page.html.haml
View file @
05224ae6
.page-with-sidebar
{
class:
nav
_sidebar_class
}
.page-with-sidebar
{
class:
page
_sidebar_class
}
=
render
"layouts/broadcast"
=
render
"layouts/broadcast"
.sidebar-wrapper.nicescroll
.sidebar-wrapper.nicescroll
{
class:
nav_sidebar_class
}
.header-logo
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
do
=
brand_header_logo
=
brand_header_logo
.gitlab-text-container
.gitlab-text-container
%h3
GitLab
%h3
GitLab
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
.collapse-nav
.collapse-nav
=
render
partial:
'layouts/collapse_button'
=
render
partial:
'layouts/collapse_button'
-
if
current_user
-
if
current_user
=
link_to
current_user
,
class:
'sidebar-user'
do
=
link_to
current_user
,
class:
'sidebar-user'
,
title:
"Profile"
do
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'
User activity
'
,
class:
'avatar avatar s36'
=
image_tag
avatar_icon
(
current_user
,
60
),
alt:
'
Profile
'
,
class:
'avatar avatar s36'
.username
.username
=
current_user
.
username
=
current_user
.
username
.content-wrapper
.content-wrapper
...
...
app/views/layouts/nav/_admin.html.haml
View file @
05224ae6
...
@@ -5,78 +5,78 @@
...
@@ -5,78 +5,78 @@
%span
%span
Overview
Overview
=
nav_link
(
controller:
[
:admin
,
:projects
])
do
=
nav_link
(
controller:
[
:admin
,
:projects
])
do
=
link_to
admin_namespaces_projects_path
,
title:
'Projects'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_namespaces_projects_path
,
title:
'Projects'
do
=
icon
(
'cube fw'
)
=
icon
(
'cube fw'
)
%span
%span
Projects
Projects
=
nav_link
(
controller: :users
)
do
=
nav_link
(
controller: :users
)
do
=
link_to
admin_users_path
,
title:
'Users'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_users_path
,
title:
'Users'
do
=
icon
(
'user fw'
)
=
icon
(
'user fw'
)
%span
%span
Users
Users
=
nav_link
(
controller: :groups
)
do
=
nav_link
(
controller: :groups
)
do
=
link_to
admin_groups_path
,
title:
'Groups'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_groups_path
,
title:
'Groups'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
%span
%span
Groups
Groups
=
nav_link
(
controller: :deploy_keys
)
do
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
admin_deploy_keys_path
,
title:
'Deploy Keys'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_deploy_keys_path
,
title:
'Deploy Keys'
do
=
icon
(
'key fw'
)
=
icon
(
'key fw'
)
%span
%span
Deploy Keys
Deploy Keys
=
nav_link
do
=
nav_link
do
=
link_to
ci_admin_projects_path
,
title:
'Continuous Integration'
,
data:
{
placement:
'right'
}
do
=
link_to
ci_admin_projects_path
,
title:
'Continuous Integration'
do
=
icon
(
'building fw'
)
=
icon
(
'building fw'
)
%span
%span
Continuous Integration
Continuous Integration
=
nav_link
(
controller: :logs
)
do
=
nav_link
(
controller: :logs
)
do
=
link_to
admin_logs_path
,
title:
'Logs'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_logs_path
,
title:
'Logs'
do
=
icon
(
'file-text fw'
)
=
icon
(
'file-text fw'
)
%span
%span
Logs
Logs
=
nav_link
(
controller: :broadcast_messages
)
do
=
nav_link
(
controller: :broadcast_messages
)
do
=
link_to
admin_broadcast_messages_path
,
title:
'
Broadcast Messages'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_broadcast_messages_path
,
title:
'
Messages'
do
=
icon
(
'bullhorn fw'
)
=
icon
(
'bullhorn fw'
)
%span
%span
Messages
Messages
=
nav_link
(
controller: :hooks
)
do
=
nav_link
(
controller: :hooks
)
do
=
link_to
admin_hooks_path
,
title:
'Hooks'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_hooks_path
,
title:
'Hooks'
do
=
icon
(
'external-link fw'
)
=
icon
(
'external-link fw'
)
%span
%span
Hooks
Hooks
=
nav_link
(
controller: :background_jobs
)
do
=
nav_link
(
controller: :background_jobs
)
do
=
link_to
admin_background_jobs_path
,
title:
'Background Jobs'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_background_jobs_path
,
title:
'Background Jobs'
do
=
icon
(
'cog fw'
)
=
icon
(
'cog fw'
)
%span
%span
Background Jobs
Background Jobs
=
nav_link
(
controller: :applications
)
do
=
nav_link
(
controller: :applications
)
do
=
link_to
admin_applications_path
,
title:
'Applications'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_applications_path
,
title:
'Applications'
do
=
icon
(
'cloud fw'
)
=
icon
(
'cloud fw'
)
%span
%span
Applications
Applications
=
nav_link
(
controller: :services
)
do
=
nav_link
(
controller: :services
)
do
=
link_to
admin_application_settings_services_path
,
title:
'Service Templates'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_application_settings_services_path
,
title:
'Service Templates'
do
=
icon
(
'copy fw'
)
=
icon
(
'copy fw'
)
%span
%span
Service Templates
Service Templates
=
nav_link
(
controller: :labels
)
do
=
nav_link
(
controller: :labels
)
do
=
link_to
admin_labels_path
,
title:
'Labels'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_labels_path
,
title:
'Labels'
do
=
icon
(
'tags fw'
)
=
icon
(
'tags fw'
)
%span
%span
Labels
Labels
=
nav_link
(
controller: :abuse_reports
)
do
=
nav_link
(
controller: :abuse_reports
)
do
=
link_to
admin_abuse_reports_path
,
title:
"Abuse
r
eports"
do
=
link_to
admin_abuse_reports_path
,
title:
"Abuse
R
eports"
do
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Abuse Reports
Abuse Reports
%span
.count
=
AbuseReport
.
count
(
:all
)
%span
.count
=
AbuseReport
.
count
(
:all
)
=
nav_link
(
controller: :application_settings
,
html_options:
{
class:
'separate-item'
})
do
=
nav_link
(
controller: :application_settings
,
html_options:
{
class:
'separate-item'
})
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
,
data:
{
placement:
'right'
}
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
do
=
icon
(
'cogs fw'
)
=
icon
(
'cogs fw'
)
%span
%span
Settings
Settings
app/views/layouts/nav/_dashboard.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
class:
'home'
})
do
=
link_to
dashboard_projects_path
,
title:
'Projects'
,
data:
{
placement:
'right'
}
do
=
link_to
dashboard_projects_path
,
title:
'Projects'
do
=
icon
(
'home fw'
)
=
icon
(
'home fw'
)
%span
%span
Projects
Projects
=
nav_link
(
path:
'dashboard#activity'
)
do
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
class:
'shortcuts-activity'
,
title:
'Activity'
,
data:
{
placement:
'right'
}
do
=
link_to
activity_dashboard_path
,
class:
'shortcuts-activity'
,
title:
'Activity'
do
=
icon
(
'dashboard fw'
)
=
icon
(
'dashboard fw'
)
%span
%span
Activity
Activity
=
nav_link
(
controller: :groups
)
do
=
nav_link
(
controller: :groups
)
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
,
data:
{
placement:
'right'
}
do
=
link_to
dashboard_groups_path
,
title:
'Groups'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
%span
%span
Groups
Groups
=
nav_link
(
controller: :milestones
)
do
=
nav_link
(
controller: :milestones
)
do
=
link_to
dashboard_milestones_path
,
title:
'Milestones'
,
data:
{
placement:
'right'
}
do
=
link_to
dashboard_milestones_path
,
title:
'Milestones'
do
=
icon
(
'clock-o fw'
)
=
icon
(
'clock-o fw'
)
%span
%span
Milestones
Milestones
=
nav_link
(
path:
'dashboard#issues'
)
do
=
nav_link
(
path:
'dashboard#issues'
)
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'shortcuts-issues'
,
data:
{
placement:
'right'
}
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'shortcuts-issues'
do
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Issues
Issues
%span
.count
=
current_user
.
assigned_issues
.
opened
.
count
%span
.count
=
current_user
.
assigned_issues
.
opened
.
count
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
,
data:
{
placement:
'right'
}
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
%span
.count
=
current_user
.
assigned_merge_requests
.
opened
.
count
%span
.count
=
current_user
.
assigned_merge_requests
.
opened
.
count
=
nav_link
(
controller: :snippets
)
do
=
nav_link
(
controller: :snippets
)
do
=
link_to
dashboard_snippets_path
,
title:
'
Your snippets'
,
data:
{
placement:
'right'
}
do
=
link_to
dashboard_snippets_path
,
title:
'
Snippets'
do
=
icon
(
'clipboard fw'
)
=
icon
(
'clipboard fw'
)
%span
%span
Snippets
Snippets
=
nav_link
(
controller: :help
)
do
=
nav_link
(
controller: :help
)
do
=
link_to
help_path
,
title:
'Help'
,
data:
{
placement:
'right'
}
do
=
link_to
help_path
,
title:
'Help'
do
=
icon
(
'question-circle fw'
)
=
icon
(
'question-circle fw'
)
%span
%span
Help
Help
%li
.separate-item
%li
.separate-item
=
nav_link
(
controller: :profile
)
do
=
nav_link
(
controller: :profile
)
do
=
link_to
profile_path
,
title:
'Profile
s
ettings'
,
data:
{
placement:
'bottom'
}
do
=
link_to
profile_path
,
title:
'Profile
S
ettings'
,
data:
{
placement:
'bottom'
}
do
=
icon
(
'user fw'
)
=
icon
(
'user fw'
)
%span
%span
Profile Settings
Profile Settings
app/views/layouts/nav/_explore.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
(
path:
[
'dashboard#show'
,
'root#show'
,
'projects#trending'
,
'projects#starred'
,
'projects#index'
],
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
[
'dashboard#show'
,
'root#show'
,
'projects#trending'
,
'projects#starred'
,
'projects#index'
],
html_options:
{
class:
'home'
})
do
=
link_to
explore_root_path
,
title:
'Projects'
,
data:
{
placement:
'right'
}
do
=
link_to
explore_root_path
,
title:
'Projects'
do
=
icon
(
'home fw'
)
=
icon
(
'home fw'
)
%span
%span
Projects
Projects
=
nav_link
(
controller: :groups
)
do
=
nav_link
(
controller: :groups
)
do
=
link_to
explore_groups_path
,
title:
'Groups'
,
data:
{
placement:
'right'
}
do
=
link_to
explore_groups_path
,
title:
'Groups'
do
=
icon
(
'group fw'
)
=
icon
(
'group fw'
)
%span
%span
Groups
Groups
=
nav_link
(
controller: :snippets
)
do
=
nav_link
(
controller: :snippets
)
do
=
link_to
explore_snippets_path
,
title:
'Snippets'
,
data:
{
placement:
'right'
}
do
=
link_to
explore_snippets_path
,
title:
'Snippets'
do
=
icon
(
'clipboard fw'
)
=
icon
(
'clipboard fw'
)
%span
%span
Snippets
Snippets
=
nav_link
(
controller: :help
)
do
=
nav_link
(
controller: :help
)
do
=
link_to
help_path
,
title:
'Help'
,
data:
{
placement:
'right'
}
do
=
link_to
help_path
,
title:
'Help'
do
=
icon
(
'question-circle fw'
)
=
icon
(
'question-circle fw'
)
%span
%span
Help
Help
app/views/layouts/nav/_group.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
do
=
nav_link
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
=
icon
(
'caret-square-o-left fw'
)
%span
%span
Go to dashboard
Go to dashboard
...
@@ -8,39 +8,39 @@
...
@@ -8,39 +8,39 @@
%li
.separate-item
%li
.separate-item
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
),
title:
'Home'
,
data:
{
placement:
'right'
}
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
=
icon
(
'dashboard fw'
)
=
icon
(
'dashboard fw'
)
%span
%span
Group
Group
-
if
can?
(
current_user
,
:read_group
,
@group
)
-
if
can?
(
current_user
,
:read_group
,
@group
)
-
if
current_user
-
if
current_user
=
nav_link
(
controller:
[
:group
,
:milestones
])
do
=
nav_link
(
controller:
[
:group
,
:milestones
])
do
=
link_to
group_milestones_path
(
@group
),
title:
'Milestones'
,
data:
{
placement:
'right'
}
do
=
link_to
group_milestones_path
(
@group
),
title:
'Milestones'
do
=
icon
(
'clock-o fw'
)
=
icon
(
'clock-o fw'
)
%span
%span
Milestones
Milestones
=
nav_link
(
path:
'groups#issues'
)
do
=
nav_link
(
path:
'groups#issues'
)
do
=
link_to
issues_group_path
(
@group
),
title:
'Issues'
,
data:
{
placement:
'right'
}
do
=
link_to
issues_group_path
(
@group
),
title:
'Issues'
do
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Issues
Issues
-
if
current_user
-
if
current_user
%span
.count
=
Issue
.
opened
.
of_group
(
@group
).
count
%span
.count
=
Issue
.
opened
.
of_group
(
@group
).
count
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
,
data:
{
placement:
'right'
}
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
-
if
current_user
-
if
current_user
%span
.count
=
MergeRequest
.
opened
.
of_group
(
@group
).
count
%span
.count
=
MergeRequest
.
opened
.
of_group
(
@group
).
count
=
nav_link
(
controller:
[
:group_members
])
do
=
nav_link
(
controller:
[
:group_members
])
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
,
data:
{
placement:
'right'
}
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
icon
(
'users fw'
)
=
icon
(
'users fw'
)
%span
%span
Members
Members
-
if
can?
(
current_user
,
:admin_group
,
@group
)
-
if
can?
(
current_user
,
:admin_group
,
@group
)
=
nav_link
(
html_options:
{
class:
"separate-item"
})
do
=
nav_link
(
html_options:
{
class:
"separate-item"
})
do
=
link_to
edit_group_path
(
@group
),
title:
'Settings'
,
data:
{
placement:
'right'
}
do
=
link_to
edit_group_path
(
@group
),
title:
'Settings'
do
=
icon
(
'cogs fw'
)
=
icon
(
'cogs fw'
)
%span
%span
Settings
Settings
app/views/layouts/nav/_group_settings.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
do
=
nav_link
do
=
link_to
group_path
(
@group
),
title:
'Go to group'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
link_to
group_path
(
@group
),
title:
'Go to group'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
=
icon
(
'caret-square-o-left fw'
)
%span
%span
Go to group
Go to group
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
%ul
.sidebar-subnav
%ul
.sidebar-subnav
=
nav_link
(
path:
'groups#edit'
)
do
=
nav_link
(
path:
'groups#edit'
)
do
=
link_to
edit_group_path
(
@group
),
title:
'Group Settings'
,
data:
{
placement:
'right'
}
do
=
link_to
edit_group_path
(
@group
),
title:
'Group Settings'
do
=
icon
(
'pencil-square-o fw'
)
=
icon
(
'pencil-square-o fw'
)
%span
%span
Group Settings
Group Settings
=
nav_link
(
path:
'groups#projects'
)
do
=
nav_link
(
path:
'groups#projects'
)
do
=
link_to
projects_group_path
(
@group
),
title:
'Projects'
,
data:
{
placement:
'right'
}
do
=
link_to
projects_group_path
(
@group
),
title:
'Projects'
do
=
icon
(
'folder fw'
)
=
icon
(
'folder fw'
)
%span
%span
Projects
Projects
app/views/layouts/nav/_profile.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
do
=
nav_link
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
=
icon
(
'caret-square-o-left fw'
)
%span
%span
Go to dashboard
Go to dashboard
...
@@ -8,52 +8,52 @@
...
@@ -8,52 +8,52 @@
%li
.separate-item
%li
.separate-item
=
nav_link
(
path:
'profiles#show'
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
'profiles#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
profile_path
,
title:
'Profile
'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_path
,
title:
'Profile
Settings'
do
=
icon
(
'user fw'
)
=
icon
(
'user fw'
)
%span
%span
Profile Settings
Profile Settings
=
nav_link
(
controller:
[
:accounts
,
:two_factor_auths
])
do
=
nav_link
(
controller:
[
:accounts
,
:two_factor_auths
])
do
=
link_to
profile_account_path
,
title:
'Account'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_account_path
,
title:
'Account'
do
=
icon
(
'gear fw'
)
=
icon
(
'gear fw'
)
%span
%span
Account
Account
=
nav_link
(
path:
[
'profiles#applications'
,
'applications#edit'
,
'applications#show'
,
'applications#new'
,
'applications#create'
])
do
=
nav_link
(
path:
[
'profiles#applications'
,
'applications#edit'
,
'applications#show'
,
'applications#new'
,
'applications#create'
])
do
=
link_to
applications_profile_path
,
title:
'Applications'
,
data:
{
placement:
'right'
}
do
=
link_to
applications_profile_path
,
title:
'Applications'
do
=
icon
(
'cloud fw'
)
=
icon
(
'cloud fw'
)
%span
%span
Applications
Applications
=
nav_link
(
controller: :emails
)
do
=
nav_link
(
controller: :emails
)
do
=
link_to
profile_emails_path
,
title:
'Emails'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_emails_path
,
title:
'Emails'
do
=
icon
(
'envelope-o fw'
)
=
icon
(
'envelope-o fw'
)
%span
%span
Emails
Emails
%span
.count
=
current_user
.
emails
.
count
+
1
%span
.count
=
current_user
.
emails
.
count
+
1
-
unless
current_user
.
ldap_user?
-
unless
current_user
.
ldap_user?
=
nav_link
(
controller: :passwords
)
do
=
nav_link
(
controller: :passwords
)
do
=
link_to
edit_profile_password_path
,
title:
'Password'
,
data:
{
placement:
'right'
}
do
=
link_to
edit_profile_password_path
,
title:
'Password'
do
=
icon
(
'lock fw'
)
=
icon
(
'lock fw'
)
%span
%span
Password
Password
=
nav_link
(
controller: :notifications
)
do
=
nav_link
(
controller: :notifications
)
do
=
link_to
profile_notifications_path
,
title:
'Notifications'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_notifications_path
,
title:
'Notifications'
do
=
icon
(
'inbox fw'
)
=
icon
(
'inbox fw'
)
%span
%span
Notifications
Notifications
=
nav_link
(
controller: :keys
)
do
=
nav_link
(
controller: :keys
)
do
=
link_to
profile_keys_path
,
title:
'SSH Keys'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_keys_path
,
title:
'SSH Keys'
do
=
icon
(
'key fw'
)
=
icon
(
'key fw'
)
%span
%span
SSH Keys
SSH Keys
%span
.count
=
current_user
.
keys
.
count
%span
.count
=
current_user
.
keys
.
count
=
nav_link
(
controller: :preferences
)
do
=
nav_link
(
controller: :preferences
)
do
=
link_to
profile_preferences_path
,
title:
'Preferences'
,
data:
{
placement:
'right'
}
do
=
link_to
profile_preferences_path
,
title:
'Preferences'
do
-# TODO (rspeicher): Better icon?
-# TODO (rspeicher): Better icon?
=
icon
(
'image fw'
)
=
icon
(
'image fw'
)
%span
%span
Preferences
Preferences
=
nav_link
(
path:
'profiles#audit_log'
)
do
=
nav_link
(
path:
'profiles#audit_log'
)
do
=
link_to
audit_log_profile_path
,
title:
'Audit Log'
,
data:
{
placement:
'right'
}
do
=
link_to
audit_log_profile_path
,
title:
'Audit Log'
do
=
icon
(
'history fw'
)
=
icon
(
'history fw'
)
%span
%span
Audit Log
Audit Log
app/views/layouts/nav/_project.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
-
if
@project
.
group
-
if
@project
.
group
=
nav_link
do
=
nav_link
do
=
link_to
group_path
(
@project
.
group
),
title:
'Go to group'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
link_to
group_path
(
@project
.
group
),
title:
'Go to group'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
=
icon
(
'caret-square-o-left fw'
)
%span
%span
Go to group
Go to group
-
else
-
else
=
nav_link
do
=
nav_link
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
link_to
root_path
,
title:
'Go to dashboard'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
=
icon
(
'caret-square-o-left fw'
)
%span
%span
Go to dashboard
Go to dashboard
...
@@ -15,32 +15,32 @@
...
@@ -15,32 +15,32 @@
%li
.separate-item
%li
.separate-item
=
nav_link
(
path:
'projects#show'
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
'projects#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-project'
,
data:
{
placement:
'right'
}
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-project'
do
=
icon
(
'home fw'
)
=
icon
(
'home fw'
)
%span
%span
Project
Project
=
nav_link
(
path:
'projects#activity'
)
do
=
nav_link
(
path:
'projects#activity'
)
do
=
link_to
activity_project_path
(
@project
),
title:
'
Project Activity'
,
class:
'shortcuts-project-activity'
,
data:
{
placement:
'right'
}
do
=
link_to
activity_project_path
(
@project
),
title:
'
Activity'
,
class:
'shortcuts-project-activity'
do
=
icon
(
'dashboard fw'
)
=
icon
(
'dashboard fw'
)
%span
%span
Activity
Activity
-
if
project_nav_tab?
:files
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree)
)
do
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree)
)
do
=
link_to
project_files_path
(
@project
),
title:
'Files'
,
class:
'shortcuts-tree'
,
data:
{
placement:
'right'
}
do
=
link_to
project_files_path
(
@project
),
title:
'Files'
,
class:
'shortcuts-tree'
do
=
icon
(
'files-o fw'
)
=
icon
(
'files-o fw'
)
%span
%span
Files
Files
-
if
project_nav_tab?
:commits
-
if
project_nav_tab?
:commits
=
nav_link
(
controller:
%w(commit commits compare repositories tags branches releases)
)
do
=
nav_link
(
controller:
%w(commit commits compare repositories tags branches releases)
)
do
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
,
data:
{
placement:
'right'
}
do
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
=
icon
(
'history fw'
)
=
icon
(
'history fw'
)
%span
%span
Commits
Commits
-
if
project_nav_tab?
:builds
-
if
project_nav_tab?
:builds
=
nav_link
(
controller:
%w(builds)
)
do
=
nav_link
(
controller:
%w(builds)
)
do
=
link_to
project_builds_path
(
@project
),
title:
'Builds'
,
class:
'shortcuts-builds'
,
data:
{
placement:
'right'
}
do
=
link_to
project_builds_path
(
@project
),
title:
'Builds'
,
class:
'shortcuts-builds'
do
=
icon
(
'cubes fw'
)
=
icon
(
'cubes fw'
)
%span
%span
Builds
Builds
...
@@ -48,28 +48,28 @@
...
@@ -48,28 +48,28 @@
-
if
project_nav_tab?
:network
-
if
project_nav_tab?
:network
=
nav_link
(
controller:
%w(network)
)
do
=
nav_link
(
controller:
%w(network)
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
do
=
icon
(
'code-fork fw'
)
=
icon
(
'code-fork fw'
)
%span
%span
Network
Network
-
if
project_nav_tab?
:graphs
-
if
project_nav_tab?
:graphs
=
nav_link
(
controller:
%w(graphs)
)
do
=
nav_link
(
controller:
%w(graphs)
)
do
=
link_to
namespace_project_graph_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Graphs'
,
class:
'shortcuts-graphs'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_graph_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Graphs'
,
class:
'shortcuts-graphs'
do
=
icon
(
'area-chart fw'
)
=
icon
(
'area-chart fw'
)
%span
%span
Graphs
Graphs
-
if
project_nav_tab?
:milestones
-
if
project_nav_tab?
:milestones
=
nav_link
(
controller: :milestones
)
do
=
nav_link
(
controller: :milestones
)
do
=
link_to
namespace_project_milestones_path
(
@project
.
namespace
,
@project
),
title:
'Milestones'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_milestones_path
(
@project
.
namespace
,
@project
),
title:
'Milestones'
do
=
icon
(
'clock-o fw'
)
=
icon
(
'clock-o fw'
)
%span
%span
Milestones
Milestones
-
if
project_nav_tab?
:issues
-
if
project_nav_tab?
:issues
=
nav_link
(
controller: :issues
)
do
=
nav_link
(
controller: :issues
)
do
=
link_to
url_for_project_issues
(
@project
,
only_path:
true
),
title:
'Issues'
,
class:
'shortcuts-issues'
,
data:
{
placement:
'right'
}
do
=
link_to
url_for_project_issues
(
@project
,
only_path:
true
),
title:
'Issues'
,
class:
'shortcuts-issues'
do
=
icon
(
'exclamation-circle fw'
)
=
icon
(
'exclamation-circle fw'
)
%span
%span
Issues
Issues
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
-
if
project_nav_tab?
:merge_requests
-
if
project_nav_tab?
:merge_requests
=
nav_link
(
controller: :merge_requests
)
do
=
nav_link
(
controller: :merge_requests
)
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
),
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
),
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
...
@@ -86,35 +86,35 @@
...
@@ -86,35 +86,35 @@
-
if
project_nav_tab?
:settings
-
if
project_nav_tab?
:settings
=
nav_link
(
controller:
[
:project_members
,
:teams
])
do
=
nav_link
(
controller:
[
:project_members
,
:teams
])
do
=
link_to
namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
title:
'Members'
,
class:
'team-tab tab'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
title:
'Members'
,
class:
'team-tab tab'
do
=
icon
(
'users fw'
)
=
icon
(
'users fw'
)
%span
%span
Members
Members
-
if
project_nav_tab?
:labels
-
if
project_nav_tab?
:labels
=
nav_link
(
controller: :labels
)
do
=
nav_link
(
controller: :labels
)
do
=
link_to
namespace_project_labels_path
(
@project
.
namespace
,
@project
),
title:
'Labels'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_labels_path
(
@project
.
namespace
,
@project
),
title:
'Labels'
do
=
icon
(
'tags fw'
)
=
icon
(
'tags fw'
)
%span
%span
Labels
Labels
-
if
project_nav_tab?
:wiki
-
if
project_nav_tab?
:wiki
=
nav_link
(
controller: :wikis
)
do
=
nav_link
(
controller: :wikis
)
do
=
link_to
get_project_wiki_path
(
@project
),
title:
'Wiki'
,
class:
'shortcuts-wiki'
,
data:
{
placement:
'right'
}
do
=
link_to
get_project_wiki_path
(
@project
),
title:
'Wiki'
,
class:
'shortcuts-wiki'
do
=
icon
(
'book fw'
)
=
icon
(
'book fw'
)
%span
%span
Wiki
Wiki
-
if
project_nav_tab?
:snippets
-
if
project_nav_tab?
:snippets
=
nav_link
(
controller: :snippets
)
do
=
nav_link
(
controller: :snippets
)
do
=
link_to
namespace_project_snippets_path
(
@project
.
namespace
,
@project
),
title:
'Snippets'
,
class:
'shortcuts-snippets'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_snippets_path
(
@project
.
namespace
,
@project
),
title:
'Snippets'
,
class:
'shortcuts-snippets'
do
=
icon
(
'clipboard fw'
)
=
icon
(
'clipboard fw'
)
%span
%span
Snippets
Snippets
-
if
project_nav_tab?
:settings
-
if
project_nav_tab?
:settings
=
nav_link
(
html_options:
{
class:
"
#{
project_tab_class
}
separate-item"
})
do
=
nav_link
(
html_options:
{
class:
"
#{
project_tab_class
}
separate-item"
})
do
=
link_to
edit_project_path
(
@project
),
title:
'Settings'
,
data:
{
placement:
'right'
}
do
=
link_to
edit_project_path
(
@project
),
title:
'Settings'
do
=
icon
(
'cogs fw'
)
=
icon
(
'cogs fw'
)
%span
%span
Settings
Settings
app/views/layouts/nav/_project_settings.html.haml
View file @
05224ae6
%ul
.nav.nav-sidebar
%ul
.nav.nav-sidebar
=
nav_link
do
=
nav_link
do
=
link_to
project_path
(
@project
),
title:
'Go to project'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
link_to
project_path
(
@project
),
title:
'Go to project'
,
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
=
icon
(
'caret-square-o-left fw'
)
%span
%span
Go to project
Go to project
...
@@ -9,59 +9,59 @@
...
@@ -9,59 +9,59 @@
%ul
.sidebar-subnav
%ul
.sidebar-subnav
=
nav_link
(
path:
'projects#edit'
)
do
=
nav_link
(
path:
'projects#edit'
)
do
=
link_to
edit_project_path
(
@project
),
title:
'Project Settings'
,
data:
{
placement:
'right'
}
do
=
link_to
edit_project_path
(
@project
),
title:
'Project Settings'
do
=
icon
(
'pencil-square-o fw'
)
=
icon
(
'pencil-square-o fw'
)
%span
%span
Project Settings
Project Settings
=
nav_link
(
controller: :deploy_keys
)
do
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
namespace_project_deploy_keys_path
(
@project
.
namespace
,
@project
),
title:
'Deploy Keys'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_deploy_keys_path
(
@project
.
namespace
,
@project
),
title:
'Deploy Keys'
do
=
icon
(
'key fw'
)
=
icon
(
'key fw'
)
%span
%span
Deploy Keys
Deploy Keys
=
nav_link
(
controller: :hooks
)
do
=
nav_link
(
controller: :hooks
)
do
=
link_to
namespace_project_hooks_path
(
@project
.
namespace
,
@project
),
title:
'Web Hooks'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_hooks_path
(
@project
.
namespace
,
@project
),
title:
'Web Hooks'
do
=
icon
(
'link fw'
)
=
icon
(
'link fw'
)
%span
%span
Web Hooks
Web Hooks
=
nav_link
(
controller: :services
)
do
=
nav_link
(
controller: :services
)
do
=
link_to
namespace_project_services_path
(
@project
.
namespace
,
@project
),
title:
'Services'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_services_path
(
@project
.
namespace
,
@project
),
title:
'Services'
do
=
icon
(
'cogs fw'
)
=
icon
(
'cogs fw'
)
%span
%span
Services
Services
=
nav_link
(
controller: :protected_branches
)
do
=
nav_link
(
controller: :protected_branches
)
do
=
link_to
namespace_project_protected_branches_path
(
@project
.
namespace
,
@project
),
title:
'Protected Branches'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_protected_branches_path
(
@project
.
namespace
,
@project
),
title:
'Protected Branches'
do
=
icon
(
'lock fw'
)
=
icon
(
'lock fw'
)
%span
%span
Protected Branches
Protected Branches
-
if
@project
.
builds_enabled?
-
if
@project
.
builds_enabled?
=
nav_link
(
controller: :runners
)
do
=
nav_link
(
controller: :runners
)
do
=
link_to
namespace_project_runners_path
(
@project
.
namespace
,
@project
),
title:
'Runners'
,
data:
{
placement:
'right'
}
do
=
link_to
namespace_project_runners_path
(
@project
.
namespace
,
@project
),
title:
'Runners'
do
=
icon
(
'cog fw'
)
=
icon
(
'cog fw'
)
%span
%span
Runners
Runners
=
nav_link
(
controller: :variables
)
do
=
nav_link
(
controller: :variables
)
do
=
link_to
namespace_project_variables_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_variables_path
(
@project
.
namespace
,
@project
)
,
title:
'Variables'
do
=
icon
(
'code fw'
)
=
icon
(
'code fw'
)
%span
%span
Variables
Variables
=
nav_link
path:
'triggers#index'
do
=
nav_link
path:
'triggers#index'
do
=
link_to
namespace_project_triggers_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_triggers_path
(
@project
.
namespace
,
@project
)
,
title:
'Triggers'
do
=
icon
(
'retweet fw'
)
=
icon
(
'retweet fw'
)
%span
%span
Triggers
Triggers
=
nav_link
path:
'ci_web_hooks#index'
do
=
nav_link
path:
'ci_web_hooks#index'
do
=
link_to
namespace_project_ci_web_hooks_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_ci_web_hooks_path
(
@project
.
namespace
,
@project
)
,
title:
'CI Web Hooks'
do
=
icon
(
'link fw'
)
=
icon
(
'link fw'
)
%span
%span
CI Web Hooks
CI Web Hooks
=
nav_link
path:
'ci_settings#edit'
do
=
nav_link
path:
'ci_settings#edit'
do
=
link_to
edit_namespace_project_ci_settings_path
(
@project
.
namespace
,
@project
)
do
=
link_to
edit_namespace_project_ci_settings_path
(
@project
.
namespace
,
@project
)
,
title:
'CI Settings'
do
=
icon
(
'building fw'
)
=
icon
(
'building fw'
)
%span
%span
CI Settings
CI Settings
=
nav_link
controller:
'ci_services'
do
=
nav_link
controller:
'ci_services'
do
=
link_to
namespace_project_ci_services_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_ci_services_path
(
@project
.
namespace
,
@project
)
,
title:
'CI Services'
do
=
icon
(
'share fw'
)
=
icon
(
'share fw'
)
%span
%span
CI Services
CI Services
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