BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1632ffa6
Commit
1632ffa6
authored
Sep 06, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clean-up-new-nav-templates' into 'master'
Clean up new navigation templates See merge request !13983
parents
f497f170
ddb3692a
Hide whitespace changes
Inline
Side-by-side
Showing
76 changed files
with
198 additions
and
827 deletions
+198
-827
group_name.js
app/assets/javascripts/group_name.js
+2
-11
issuable_bulk_update_sidebar.js
app/assets/javascripts/issuable_bulk_update_sidebar.js
+0
-25
layout_nav.js
app/assets/javascripts/layout_nav.js
+3
-12
new_sidebar.js
app/assets/javascripts/new_sidebar.js
+1
-1
right_sidebar.js
app/assets/javascripts/right_sidebar.js
+0
-2
sidebar_height_manager.js
app/assets/javascripts/sidebar_height_manager.js
+0
-37
boards.scss
app/assets/stylesheets/pages/boards.scss
+1
-0
application_helper.rb
app/helpers/application_helper.rb
+0
-4
groups_helper.rb
app/helpers/groups_helper.rb
+1
-1
nav_helper.rb
app/helpers/nav_helper.rb
+2
-19
page_layout_helper.rb
app/helpers/page_layout_helper.rb
+1
-1
projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
_groups_head.html.haml
app/views/dashboard/_groups_head.html.haml
+3
-3
_projects_head.html.haml
app/views/dashboard/_projects_head.html.haml
+3
-3
_snippets_head.html.haml
app/views/dashboard/_snippets_head.html.haml
+1
-5
issues.html.haml
app/views/dashboard/issues.html.haml
+5
-6
merge_requests.html.haml
app/views/dashboard/merge_requests.html.haml
+3
-4
index.html.haml
app/views/dashboard/milestones/index.html.haml
+3
-4
issues.html.haml
app/views/groups/issues.html.haml
+2
-2
index.html.haml
app/views/groups/labels/index.html.haml
+2
-2
merge_requests.html.haml
app/views/groups/merge_requests.html.haml
+2
-2
index.html.haml
app/views/groups/milestones/index.html.haml
+2
-2
_head.html.haml
app/views/layouts/_head.html.haml
+3
-3
_page.html.haml
app/views/layouts/_page.html.haml
+7
-19
admin.html.haml
app/views/layouts/admin.html.haml
+2
-5
application.html.haml
app/views/layouts/application.html.haml
+1
-4
group.html.haml
app/views/layouts/group.html.haml
+2
-5
_default.html.haml
app/views/layouts/header/_default.html.haml
+29
-41
_new.html.haml
app/views/layouts/header/_new.html.haml
+0
-79
_new_dropdown.haml
app/views/layouts/header/_new_dropdown.haml
+2
-6
_admin.html.haml
app/views/layouts/nav/_admin.html.haml
+0
-40
_admin_settings.html.haml
app/views/layouts/nav/_admin_settings.html.haml
+0
-31
_breadcrumbs.html.haml
app/views/layouts/nav/_breadcrumbs.html.haml
+1
-1
_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+59
-64
_explore.html.haml
app/views/layouts/nav/_explore.html.haml
+6
-24
_group.html.haml
app/views/layouts/nav/_group.html.haml
+0
-31
_new_dashboard.html.haml
app/views/layouts/nav/_new_dashboard.html.haml
+0
-62
_new_explore.html.haml
app/views/layouts/nav/_new_explore.html.haml
+0
-12
_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+0
-57
_project.html.haml
app/views/layouts/nav/_project.html.haml
+0
-111
_admin.html.haml
app/views/layouts/nav/sidebar/_admin.html.haml
+0
-0
_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+0
-0
_profile.html.haml
app/views/layouts/nav/sidebar/_profile.html.haml
+0
-0
_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+0
-0
profile.html.haml
app/views/layouts/profile.html.haml
+2
-5
project.html.haml
app/views/layouts/project.html.haml
+2
-5
show.html.haml
app/views/profiles/two_factor_auths/show.html.haml
+1
-4
_flash_messages.html.haml
app/views/projects/_flash_messages.html.haml
+1
-2
activity.html.haml
app/views/projects/activity.html.haml
+1
-3
_show.html.haml
app/views/projects/boards/_show.html.haml
+1
-3
index.html.haml
app/views/projects/branches/index.html.haml
+2
-3
show.html.haml
app/views/projects/commits/show.html.haml
+1
-2
index.html.haml
app/views/projects/compare/index.html.haml
+1
-2
show.html.haml
app/views/projects/compare/show.html.haml
+1
-2
show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+1
-2
index.html.haml
app/views/projects/environments/index.html.haml
+1
-3
charts.html.haml
app/views/projects/graphs/charts.html.haml
+1
-2
show.html.haml
app/views/projects/graphs/show.html.haml
+1
-2
index.html.haml
app/views/projects/issues/index.html.haml
+3
-4
index.html.haml
app/views/projects/jobs/index.html.haml
+1
-2
index.html.haml
app/views/projects/labels/index.html.haml
+2
-2
index.html.haml
app/views/projects/merge_requests/index.html.haml
+3
-4
index.html.haml
app/views/projects/milestones/index.html.haml
+3
-3
show.html.haml
app/views/projects/network/show.html.haml
+1
-2
index.html.haml
app/views/projects/pipeline_schedules/index.html.haml
+3
-3
new.html.haml
app/views/projects/pipeline_schedules/new.html.haml
+1
-2
charts.html.haml
app/views/projects/pipelines/charts.html.haml
+1
-2
index.html.haml
app/views/projects/project_members/index.html.haml
+1
-2
edit.html.haml
app/views/projects/services/edit.html.haml
+1
-3
show.html.haml
app/views/projects/settings/ci_cd/show.html.haml
+1
-3
show.html.haml
app/views/projects/settings/integrations/show.html.haml
+1
-2
show.html.haml
app/views/projects/settings/repository/show.html.haml
+1
-3
index.html.haml
app/views/projects/snippets/index.html.haml
+2
-2
index.html.haml
app/views/projects/tags/index.html.haml
+1
-3
_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-1
_project.html.haml_spec.rb
spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
+4
-2
No files found.
app/assets/javascripts/group_name.js
View file @
1632ffa6
import
Cookies
from
'js-cookie'
;
import
_
from
'underscore'
;
export
default
class
GroupName
{
...
...
@@ -39,17 +38,9 @@ export default class GroupName {
this
.
toggle
.
setAttribute
(
'type'
,
'button'
);
this
.
toggle
.
className
=
'text-expander group-name-toggle'
;
this
.
toggle
.
setAttribute
(
'aria-label'
,
'Toggle full path'
);
if
(
Cookies
.
get
(
'new_nav'
)
===
'true'
)
{
this
.
toggle
.
innerHTML
=
'<i class="fa fa-ellipsis-h" aria-hidden="true"></i>'
;
}
else
{
this
.
toggle
.
innerHTML
=
'...'
;
}
this
.
toggle
.
innerHTML
=
'<i class="fa fa-ellipsis-h" aria-hidden="true"></i>'
;
this
.
toggle
.
addEventListener
(
'click'
,
this
.
toggleGroups
.
bind
(
this
));
if
(
Cookies
.
get
(
'new_nav'
)
===
'true'
)
{
this
.
title
.
insertBefore
(
this
.
toggle
,
this
.
groupTitle
);
}
else
{
this
.
titleContainer
.
insertBefore
(
this
.
toggle
,
this
.
title
);
}
this
.
title
.
insertBefore
(
this
.
toggle
,
this
.
groupTitle
);
this
.
toggleGroups
();
}
...
...
app/assets/javascripts/issuable_bulk_update_sidebar.js
View file @
1632ffa6
...
...
@@ -5,7 +5,6 @@
/* global SubscriptionSelect */
import
IssuableBulkUpdateActions
from
'./issuable_bulk_update_actions'
;
import
SidebarHeightManager
from
'./sidebar_height_manager'
;
const
HIDDEN_CLASS
=
'hidden'
;
const
DISABLED_CONTENT_CLASS
=
'disabled-content'
;
...
...
@@ -50,13 +49,6 @@ export default class IssuableBulkUpdateSidebar {
new
SubscriptionSelect
();
}
getNavHeight
()
{
const
navbarHeight
=
$
(
'.navbar-gitlab'
).
outerHeight
();
const
layoutNavHeight
=
$
(
'.layout-nav'
).
outerHeight
();
const
subNavScroll
=
$
(
'.sub-nav-scroll'
).
outerHeight
();
return
navbarHeight
+
layoutNavHeight
+
subNavScroll
;
}
setupBulkUpdateActions
()
{
IssuableBulkUpdateActions
.
setOriginalDropdownData
();
}
...
...
@@ -84,23 +76,6 @@ export default class IssuableBulkUpdateSidebar {
this
.
toggleBulkEditButtonDisabled
(
enable
);
this
.
toggleOtherFiltersDisabled
(
enable
);
this
.
toggleCheckboxDisplay
(
enable
);
if
(
enable
)
{
this
.
initAffix
();
SidebarHeightManager
.
init
();
}
}
initAffix
()
{
if
(
!
this
.
$sidebar
.
hasClass
(
'affix-top'
))
{
const
offsetTop
=
$
(
'.scrolling-tabs-container'
).
outerHeight
()
+
$
(
'.sub-nav-scroll'
).
outerHeight
();
this
.
$sidebar
.
affix
({
offset
:
{
top
:
offsetTop
,
},
});
}
}
updateSelectedIssuableIds
()
{
...
...
app/assets/javascripts/layout_nav.js
View file @
1632ffa6
...
...
@@ -50,19 +50,10 @@ import initFlyOutNav from './fly_out_nav';
});
});
function
applyScrollNavClass
()
{
const
scrollOpacityHeight
=
40
;
$
(
'.navbar-border'
).
css
(
'opacity'
,
Math
.
min
(
$
(
window
).
scrollTop
()
/
scrollOpacityHeight
,
1
));
}
$
(()
=>
{
if
(
Cookies
.
get
(
'new_nav'
)
===
'true'
)
{
const
newNavSidebar
=
new
NewNavSidebar
();
newNavSidebar
.
bindEvents
();
initFlyOutNav
();
}
const
newNavSidebar
=
new
NewNavSidebar
();
newNavSidebar
.
bindEvents
();
$
(
window
).
on
(
'scroll'
,
_
.
throttle
(
applyScrollNavClass
,
100
)
);
initFlyOutNav
(
);
});
}).
call
(
window
);
app/assets/javascripts/new_sidebar.js
View file @
1632ffa6
...
...
@@ -63,7 +63,7 @@ export default class NewNavSidebar {
if
(
breakpoint
===
'sm'
||
breakpoint
===
'md'
)
{
this
.
toggleCollapsedSidebar
(
true
);
}
else
if
(
breakpoint
===
'lg'
)
{
const
collapse
=
Cookies
.
get
(
'sidebar_collapsed'
)
===
'true'
;
const
collapse
=
this
.
$sidebar
.
hasClass
(
'sidebar-icons-only'
)
;
this
.
toggleCollapsedSidebar
(
collapse
);
}
}
...
...
app/assets/javascripts/right_sidebar.js
View file @
1632ffa6
...
...
@@ -2,7 +2,6 @@
import
_
from
'underscore'
;
import
Cookies
from
'js-cookie'
;
import
SidebarHeightManager
from
'./sidebar_height_manager'
;
(
function
()
{
this
.
Sidebar
=
(
function
()
{
...
...
@@ -23,7 +22,6 @@ import SidebarHeightManager from './sidebar_height_manager';
};
Sidebar
.
prototype
.
addEventListeners
=
function
()
{
SidebarHeightManager
.
init
();
const
$document
=
$
(
document
);
this
.
sidebar
.
on
(
'click'
,
'.sidebar-collapsed-icon'
,
this
,
this
.
sidebarCollapseClicked
);
...
...
app/assets/javascripts/sidebar_height_manager.js
deleted
100644 → 0
View file @
f497f170
import
_
from
'underscore'
;
import
Cookies
from
'js-cookie'
;
export
default
{
init
()
{
if
(
!
this
.
initialized
)
{
if
(
Cookies
.
get
(
'new_nav'
)
===
'true'
&&
$
(
'.js-issuable-sidebar'
).
length
)
return
;
this
.
$window
=
$
(
window
);
this
.
$rightSidebar
=
$
(
'.js-right-sidebar'
);
this
.
$navHeight
=
$
(
'.navbar-gitlab'
).
outerHeight
()
+
$
(
'.layout-nav'
).
outerHeight
()
+
$
(
'.sub-nav-scroll'
).
outerHeight
();
const
throttledSetSidebarHeight
=
_
.
throttle
(()
=>
this
.
setSidebarHeight
(),
20
);
const
debouncedSetSidebarHeight
=
_
.
debounce
(()
=>
this
.
setSidebarHeight
(),
200
);
this
.
$window
.
on
(
'scroll'
,
throttledSetSidebarHeight
);
this
.
$window
.
on
(
'resize'
,
debouncedSetSidebarHeight
);
this
.
initialized
=
true
;
}
},
setSidebarHeight
()
{
const
currentScrollDepth
=
window
.
pageYOffset
||
0
;
const
diff
=
this
.
$navHeight
-
currentScrollDepth
;
if
(
diff
>
0
)
{
const
newSidebarHeight
=
window
.
innerHeight
-
diff
;
this
.
$rightSidebar
.
outerHeight
(
newSidebarHeight
);
this
.
sidebarHeightIsCustom
=
true
;
}
else
if
(
this
.
sidebarHeightIsCustom
)
{
this
.
$rightSidebar
.
outerHeight
(
'100%'
);
this
.
sidebarHeightIsCustom
=
false
;
}
},
};
app/assets/stylesheets/pages/boards.scss
View file @
1632ffa6
...
...
@@ -440,6 +440,7 @@
&
.right-sidebar
{
top
:
0
;
bottom
:
0
;
height
:
100%
;
}
.issuable-sidebar-header
{
...
...
app/helpers/application_helper.rb
View file @
1632ffa6
...
...
@@ -302,10 +302,6 @@ module ApplicationHelper
end
end
def
show_new_nav?
true
end
def
collapsed_sidebar?
cookies
[
"sidebar_collapsed"
]
==
"true"
end
...
...
app/helpers/groups_helper.rb
View file @
1632ffa6
...
...
@@ -68,7 +68,7 @@ module GroupsHelper
def
group_title_link
(
group
,
hidable:
false
)
link_to
(
group_path
(
group
),
class:
"group-path
#{
'hidable'
if
hidable
}
"
)
do
output
=
if
show_new_nav?
&&
!
Rails
.
env
.
test?
if
!
Rails
.
env
.
test?
image_tag
(
group_icon
(
group
),
class:
"avatar-tile"
,
width:
16
,
height:
16
)
else
""
...
...
app/helpers/nav_helper.rb
View file @
1632ffa6
module
NavHelper
def
page_with_sidebar_class
class_name
=
page_gutter_class
class_name
<<
'page-with-new-sidebar'
if
defined?
(
@
new_sidebar
)
&&
@new
_sidebar
class_name
<<
'page-with-icon-sidebar'
if
collapsed_sidebar?
&&
@
new
_sidebar
class_name
<<
'page-with-new-sidebar'
if
defined?
(
@
left_sidebar
)
&&
@left
_sidebar
class_name
<<
'page-with-icon-sidebar'
if
collapsed_sidebar?
&&
@
left
_sidebar
class_name
end
...
...
@@ -30,23 +30,6 @@ module NavHelper
end
end
def
nav_header_class
class_names
=
[]
class_names
<<
'with-horizontal-nav'
if
defined?
(
nav
)
&&
nav
class_names
end
def
layout_nav_class
return
'page-with-new-nav'
if
show_new_nav?
class_names
=
[]
class_names
<<
'page-with-layout-nav'
if
defined?
(
nav
)
&&
nav
class_names
<<
'page-with-sub-nav'
if
content_for?
(
:sub_nav
)
class_names
end
def
nav_control_class
"nav-control"
if
current_user
end
...
...
app/helpers/page_layout_helper.rb
View file @
1632ffa6
...
...
@@ -4,7 +4,7 @@ module PageLayoutHelper
@page_title
.
push
(
*
titles
.
compact
)
if
titles
.
any?
if
show_new_nav?
&&
titles
.
any?
&&
!
defined?
(
@breadcrumb_title
)
if
titles
.
any?
&&
!
defined?
(
@breadcrumb_title
)
@breadcrumb_title
=
@page_title
.
last
end
...
...
app/helpers/projects_helper.rb
View file @
1632ffa6
...
...
@@ -62,7 +62,7 @@ module ProjectsHelper
project_link
=
link_to
project_path
(
project
),
{
class:
"project-item-select-holder"
}
do
output
=
if
show_new_nav?
&&
!
Rails
.
env
.
test?
if
!
Rails
.
env
.
test?
project_icon
(
project
,
alt:
project
.
name
,
class:
'avatar-tile'
,
width:
16
,
height:
16
)
else
""
...
...
app/views/dashboard/_groups_head.html.haml
View file @
1632ffa6
-
if
show_new_nav?
&&
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
-
content_for
:breadcrumbs_extra
do
=
link_to
"New group"
,
new_group_path
,
class:
"btn btn-new"
...
...
@@ -10,8 +10,8 @@
=
nav_link
(
page:
explore_groups_path
)
do
=
link_to
explore_groups_path
,
title:
'Explore public groups'
do
Explore public groups
.nav-controls
{
class:
(
"nav-controls-new-nav"
if
show_new_nav?
)
}
.nav-controls
.nav-controls-new-nav
=
render
'shared/groups/search_form'
=
render
'shared/groups/dropdown'
-
if
current_user
.
can_create_group?
=
link_to
"New group"
,
new_group_path
,
class:
"btn btn-new
#{
(
"visible-xs"
if
show_new_nav?
)
}
"
=
link_to
"New group"
,
new_group_path
,
class:
"btn btn-new
visible-xs
"
app/views/dashboard/_projects_head.html.haml
View file @
1632ffa6
=
content_for
:flash_message
do
=
render
'shared/project_limit'
-
if
show_new_nav?
&&
current_user
.
can_create_project?
-
if
current_user
.
can_create_project?
-
content_for
:breadcrumbs_extra
do
=
link_to
"New project"
,
new_project_path
,
class:
'btn btn-new'
...
...
@@ -19,8 +19,8 @@
=
link_to
explore_root_path
,
title:
'Explore'
,
data:
{
placement:
'right'
}
do
Explore projects
.nav-controls
{
class:
(
"nav-controls-new-nav"
if
show_new_nav?
)
}
.nav-controls
.nav-controls-new-nav
=
render
'shared/projects/search_form'
=
render
'shared/projects/dropdown'
-
if
current_user
.
can_create_project?
=
link_to
"New project"
,
new_project_path
,
class:
"btn btn-new
#{
(
"visible-xs"
if
show_new_nav?
)
}
"
=
link_to
"New project"
,
new_project_path
,
class:
"btn btn-new
visible-xs
"
app/views/dashboard/_snippets_head.html.haml
View file @
1632ffa6
-
if
show_new_nav?
&&
current_user
-
if
current_user
-
content_for
:breadcrumbs_extra
do
=
link_to
"New snippet"
,
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New snippet"
...
...
@@ -10,7 +10,3 @@
=
nav_link
(
page:
explore_snippets_path
)
do
=
link_to
explore_snippets_path
,
title:
'Explore snippets'
,
data:
{
placement:
'right'
}
do
Explore Snippets
-
if
current_user
.nav-controls.hidden-xs
{
class:
(
"hidden-sm hidden-md hidden-lg"
if
show_new_nav?
)
}
=
link_to
"New snippet"
,
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New snippet"
app/views/dashboard/issues.html.haml
View file @
1632ffa6
...
...
@@ -4,15 +4,14 @@
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
current_user
.
name
}
issues"
)
-
if
show_new_nav?
-
content_for
:breadcrumbs_extra
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn has-tooltip append-right-10'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
with_feature_enabled:
'issues'
,
type: :issues
-
content_for
:breadcrumbs_extra
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn has-tooltip append-right-10'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
with_feature_enabled:
'issues'
,
type: :issues
.top-area
=
render
'shared/issuable/nav'
,
type: :issues
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn has-tooltip'
,
title:
'Subscribe'
do
=
icon
(
'rss'
)
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
"New issue"
,
with_feature_enabled:
'issues'
,
type: :issues
...
...
app/views/dashboard/merge_requests.html.haml
View file @
1632ffa6
...
...
@@ -2,13 +2,12 @@
-
page_title
"Merge Requests"
-
header_title
"Merge Requests"
,
merge_requests_dashboard_path
(
assignee_id:
current_user
.
id
)
-
if
show_new_nav?
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
with_feature_enabled:
'merge_requests'
,
type: :merge_requests
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
with_feature_enabled:
'merge_requests'
,
type: :merge_requests
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
with_feature_enabled:
'merge_requests'
,
type: :merge_requests
=
render
'shared/issuable/filter'
,
type: :merge_requests
...
...
app/views/dashboard/milestones/index.html.haml
View file @
1632ffa6
...
...
@@ -2,14 +2,13 @@
-
page_title
'Milestones'
-
header_title
'Milestones'
,
dashboard_milestones_path
-
if
show_new_nav?
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'milestones/new'
,
label:
'New milestone'
,
include_groups:
true
,
type: :milestones
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'milestones/new'
,
label:
'New milestone'
,
include_groups:
true
,
type: :milestones
.top-area
=
render
'shared/milestones_filter'
,
counts:
@milestone_states
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
render
'shared/new_project_item_select'
,
path:
'milestones/new'
,
label:
'New milestone'
,
include_groups:
true
,
type: :milestones
.milestones
...
...
app/views/groups/issues.html.haml
View file @
1632ffa6
...
...
@@ -8,7 +8,7 @@
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'filtered_search'
-
if
show_new_nav?
&&
group_issues_exists
-
if
group_issues_exists
-
content_for
:breadcrumbs_extra
do
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn btn-default append-right-10'
do
=
icon
(
'rss'
)
...
...
@@ -19,7 +19,7 @@
-
if
group_issues_exists
.top-area
=
render
'shared/issuable/nav'
,
type: :issues
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
link_to
params
.
merge
(
rss_url_options
),
class:
'btn'
do
=
icon
(
'rss'
)
%span
.icon-label
...
...
app/views/groups/labels/index.html.haml
View file @
1632ffa6
-
page_title
'Labels'
-
if
show_new_nav?
&&
can?
(
current_user
,
:admin_label
,
@group
)
-
if
can?
(
current_user
,
:admin_label
,
@group
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New label"
,
new_group_label_path
(
@group
),
class:
"btn btn-new"
...
...
@@ -10,7 +10,7 @@
.nav-text
Labels can be applied to issues and merge requests. Group labels are available for any project within the group.
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
-
if
can?
(
current_user
,
:admin_label
,
@group
)
=
link_to
"New label"
,
new_group_label_path
(
@group
),
class:
"btn btn-new"
...
...
app/views/groups/merge_requests.html.haml
View file @
1632ffa6
...
...
@@ -4,7 +4,7 @@
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'filtered_search'
-
if
show_new_nav?
&&
current_user
-
if
current_user
-
content_for
:breadcrumbs_extra
do
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
type: :merge_requests
...
...
@@ -14,7 +14,7 @@
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
-
if
current_user
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
render
'shared/new_project_item_select'
,
path:
'merge_requests/new'
,
label:
"New merge request"
,
type: :merge_requests
=
render
'shared/issuable/search_bar'
,
type: :merge_requests
...
...
app/views/groups/milestones/index.html.haml
View file @
1632ffa6
-
page_title
"Milestones"
-
if
show_new_nav?
&&
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New milestone"
,
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
...
...
@@ -8,7 +8,7 @@
.top-area
=
render
'shared/milestones_filter'
,
counts:
@milestone_states
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
=
link_to
"New milestone"
,
new_group_milestone_path
(
@group
),
class:
"btn btn-new"
...
...
app/views/layouts/_head.html.haml
View file @
1632ffa6
...
...
@@ -32,9 +32,9 @@
=
stylesheet_link_tag
"test"
,
media:
"all"
if
Rails
.
env
.
test?
=
stylesheet_link_tag
'performance_bar'
if
performance_bar_enabled?
-
if
show_new_nav?
=
stylesheet_link_tag
"new_nav"
,
media:
"all"
=
stylesheet_link_tag
"new_sidebar"
,
media:
"all"
// TODO: Combine these 2 stylesheets into application.scss
=
stylesheet_link_tag
"new_nav"
,
media:
"all"
=
stylesheet_link_tag
"new_sidebar"
,
media:
"all"
=
Gon
::
Base
.
render_data
...
...
app/views/layouts/_page.html.haml
View file @
1632ffa6
.page-with-sidebar
{
class:
page_with_sidebar_class
}
-
if
show_new_nav?
-
if
defined?
(
nav
)
&&
nav
=
render
"layouts/nav/
#{
nav
}
"
-
else
-
if
defined?
(
nav
)
&&
nav
.layout-nav
.container-fluid
=
render
"layouts/nav/
#{
nav
}
"
-
if
content_for?
(
:sub_nav
)
=
yield
:sub_nav
.content-wrapper
{
class:
layout_nav_class
}
-
if
show_new_nav?
.mobile-overlay
-
if
defined?
(
nav
)
&&
nav
=
render
"layouts/nav/sidebar/
#{
nav
}
"
.content-wrapper.page-with-new-nav
.mobile-overlay
.alert-wrapper
=
render
"layouts/broadcast"
-
if
show_new_nav?
-
if
content_for?
(
:new_global_flash
)
=
yield
:new_global_flash
-
unless
@hide_breadcrumbs
=
render
"layouts/nav/breadcrumbs"
=
render
"layouts/flash"
=
yield
:flash_message
-
unless
@hide_breadcrumbs
=
render
"layouts/nav/breadcrumbs"
=
render
"layouts/flash"
%div
{
class:
"#{(container_class unless @no_container)} #{@content_class}"
}
.content
{
id:
"content-body"
}
=
yield
app/views/layouts/admin.html.haml
View file @
1632ffa6
-
page_title
"Admin Area"
-
header_title
"Admin Area"
,
admin_root_path
-
if
show_new_nav?
-
nav
"new_admin_sidebar"
-
@new_sidebar
=
true
-
else
-
nav
"admin"
-
nav
"admin"
-
@left_sidebar
=
true
=
render
template:
"layouts/application"
app/views/layouts/application.html.haml
View file @
1632ffa6
...
...
@@ -4,10 +4,7 @@
%body
{
class:
@body_class
,
data:
{
page:
body_data_page
,
project:
"#{@project.path if @project}"
,
group:
"#{@group.path if @group}"
,
find_file:
find_file_path
}
}
=
render
"layouts/init_auto_complete"
if
@gfm_form
=
render
'peek/bar'
-
if
show_new_nav?
=
render
"layouts/header/new"
-
else
=
render
"layouts/header/default"
,
title:
header_title
=
render
"layouts/header/default"
=
render
'layouts/page'
,
sidebar:
sidebar
,
nav:
nav
=
yield
:scripts_body
app/views/layouts/group.html.haml
View file @
1632ffa6
-
page_title
@group
.
name
-
page_description
@group
.
description
unless
page_description
-
header_title
group_title
(
@group
)
unless
header_title
-
if
show_new_nav?
-
nav
"new_group_sidebar"
-
@new_sidebar
=
true
-
else
-
nav
"group"
-
nav
"group"
-
@left_sidebar
=
true
=
render
template:
"layouts/application"
app/views/layouts/header/_default.html.haml
View file @
1632ffa6
%header
.navbar.navbar-gitlab
{
class:
nav_header_class
}
.navbar-border
%header
.navbar.navbar-gitlab.navbar-gitlab-new
%a
.sr-only.gl-accessibility
{
href:
"#content-body"
,
tabindex:
"1"
}
Skip to content
.container-fluid
.header-content
.dropdown.global-dropdown
%button
.global-dropdown-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.sr-only
Toggle navigation
=
icon
(
'bars'
)
.dropdown-menu-nav.global-dropdown-menu
-
if
current_user
=
render
'layouts/nav/dashboard'
-
else
=
render
'layouts/nav/explore'
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'logo'
do
=
brand_header_logo
.title-container
%h1
.title
=
link_to
root_path
,
title:
'Dashboard'
,
id:
'logo'
do
=
brand_header_logo
%span
.logo-text.hidden-xs
=
render
'shared/logo_type.svg'
.title-container.js-title-container
%h1
.title
{
class:
(
'initializing'
if
@has_group_title
)
}=
title
-
if
current_user
=
render
"layouts/nav/dashboard"
-
else
=
render
"layouts/nav/explore"
.navbar-collapse.collapse
%ul
.nav.navbar-nav
-
if
current_user
=
render
'layouts/header/new_dropdown'
%li
.hidden-sm.hidden-xs
=
render
'layouts/search'
unless
current_controller?
(
:search
)
%li
.visible-sm-inline-block.visible-xs-inline-block
=
link_to
search_path
,
title:
'Search'
,
aria:
{
label:
"Search"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'search'
)
-
if
current_user
-
if
session
[
:impersonator_id
]
%li
.impersonation
=
link_to
admin_impersonation_path
,
method: :delete
,
title:
"Stop impersonation"
,
aria:
{
label:
'Stop impersonation'
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'user-secret fw'
)
-
if
current_user
.
admin?
%li
=
link_to
admin_root_path
,
title:
'Admin area'
,
aria:
{
label:
"Admin area"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'wrench fw'
)
=
render
'layouts/header/new_dropdown'
-
if
Gitlab
::
Sherlock
.
enabled?
%li
=
link_to
sherlock_transactions_path
,
title:
'Sherlock Transactions'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'tachometer fw'
)
%li
.user-counter
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
aria:
{
label:
"Issues"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
,
aria:
{
label:
"Issues"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
custom_icon
(
'issues'
)
-
issues_count
=
assigned_issuables_count
(
:issues
)
%span
.badge.issues-count
{
class:
(
'hidden'
if
issues_count
.
zero?
)
}
=
number_with_delimiter
(
issues_count
)
%li
.user-counter
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge requests'
,
aria:
{
label:
"Merge requests"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge requests'
,
class:
'dashboard-shortcuts-merge_requests'
,
aria:
{
label:
"Merge requests"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
custom_icon
(
'mr_bold'
)
-
merge_requests_count
=
assigned_issuables_count
(
:merge_requests
)
%span
.badge.merge-requests-count
{
class:
(
'hidden'
if
merge_requests_count
.
zero?
)
}
...
...
@@ -60,9 +42,9 @@
%span
.badge.todos-count
{
class:
(
'hidden'
if
todos_pending_count
.
zero?
)
}
=
todos_count_format
(
todos_pending_count
)
%li
.header-user.dropdown
=
link_to
current_user
,
class:
"header-user-dropdown-toggle"
,
data:
{
toggle:
"dropdown"
}
do
=
image_tag
avatar_icon
(
current_user
,
2
6
),
width:
26
,
height:
26
,
class:
"header-user-avatar"
=
icon
(
'caret-
down'
)
=
link_to
current_user
,
class:
user_dropdown_class
,
data:
{
toggle:
"dropdown"
}
do
=
image_tag
avatar_icon
(
current_user
,
2
3
),
width:
23
,
height:
23
,
class:
"header-user-avatar"
=
custom_icon
(
'caret_
down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
%li
.current-user
...
...
@@ -74,18 +56,24 @@
=
link_to
"Profile"
,
current_user
,
class:
'profile-link'
,
data:
{
user:
current_user
.
username
}
%li
=
link_to
"Settings"
,
profile_path
-
if
current_user
%li
=
link_to
"Help"
,
help_path
%li
.divider
%li
=
link_to
"Sign out"
,
destroy_user_session_path
,
method: :delete
,
class:
"sign-out-link"
-
if
session
[
:impersonator_id
]
%li
.impersonation
=
link_to
admin_impersonation_path
,
class:
'impersonation-btn'
,
method: :delete
,
title:
"Stop impersonation"
,
aria:
{
label:
'Stop impersonation'
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'user-secret'
)
-
else
%li
%div
=
link_to
"Sign in
"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in btn-success
'
=
link_to
"Sign in
/ Register"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in
'
%button
.navbar-toggle
{
type:
'button'
}
%button
.navbar-toggle
.hidden-sm.hidden-md.hidden-lg
{
type:
'button'
}
%span
.sr-only
Toggle navigation
=
icon
(
'ellipsis-v'
)
=
yield
:header_content
=
icon
(
'ellipsis-v'
,
class:
'js-navbar-toggle-right'
)
=
icon
(
'times'
,
class:
'js-navbar-toggle-left'
)
=
render
'shared/outdated_browser'
app/views/layouts/header/_new.html.haml
deleted
100644 → 0
View file @
f497f170
%header
.navbar.navbar-gitlab.navbar-gitlab-new
{
class:
nav_header_class
}
%a
.sr-only.gl-accessibility
{
href:
"#content-body"
,
tabindex:
"1"
}
Skip to content
.container-fluid
.header-content
.title-container
%h1
.title
=
link_to
root_path
,
title:
'Dashboard'
,
id:
'logo'
do
=
brand_header_logo
%span
.logo-text.hidden-xs
=
render
'shared/logo_type.svg'
-
if
current_user
=
render
"layouts/nav/new_dashboard"
-
else
=
render
"layouts/nav/new_explore"
.navbar-collapse.collapse
%ul
.nav.navbar-nav
-
if
current_user
=
render
'layouts/header/new_dropdown'
%li
.hidden-sm.hidden-xs
=
render
'layouts/search'
unless
current_controller?
(
:search
)
%li
.visible-sm-inline-block.visible-xs-inline-block
=
link_to
search_path
,
title:
'Search'
,
aria:
{
label:
"Search"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'search'
)
-
if
current_user
%li
.user-counter
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
,
aria:
{
label:
"Issues"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
custom_icon
(
'issues'
)
-
issues_count
=
assigned_issuables_count
(
:issues
)
%span
.badge.issues-count
{
class:
(
'hidden'
if
issues_count
.
zero?
)
}
=
number_with_delimiter
(
issues_count
)
%li
.user-counter
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge requests'
,
class:
'dashboard-shortcuts-merge_requests'
,
aria:
{
label:
"Merge requests"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
custom_icon
(
'mr_bold'
)
-
merge_requests_count
=
assigned_issuables_count
(
:merge_requests
)
%span
.badge.merge-requests-count
{
class:
(
'hidden'
if
merge_requests_count
.
zero?
)
}
=
number_with_delimiter
(
merge_requests_count
)
%li
.user-counter
=
link_to
dashboard_todos_path
,
title:
'Todos'
,
aria:
{
label:
"Todos"
},
class:
'shortcuts-todos'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
custom_icon
(
'todo_done'
)
%span
.badge.todos-count
{
class:
(
'hidden'
if
todos_pending_count
.
zero?
)
}
=
todos_count_format
(
todos_pending_count
)
%li
.header-user.dropdown
=
link_to
current_user
,
class:
user_dropdown_class
,
data:
{
toggle:
"dropdown"
}
do
=
image_tag
avatar_icon
(
current_user
,
23
),
width:
23
,
height:
23
,
class:
"header-user-avatar"
=
custom_icon
(
'caret_down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
%li
.current-user
.user-name.bold
=
current_user
.
name
@
#{
current_user
.
username
}
%li
.divider
%li
=
link_to
"Profile"
,
current_user
,
class:
'profile-link'
,
data:
{
user:
current_user
.
username
}
%li
=
link_to
"Settings"
,
profile_path
-
if
current_user
%li
=
link_to
"Help"
,
help_path
%li
.divider
%li
=
link_to
"Sign out"
,
destroy_user_session_path
,
method: :delete
,
class:
"sign-out-link"
-
if
session
[
:impersonator_id
]
%li
.impersonation
=
link_to
admin_impersonation_path
,
class:
'impersonation-btn'
,
method: :delete
,
title:
"Stop impersonation"
,
aria:
{
label:
'Stop impersonation'
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'user-secret'
)
-
else
%li
%div
=
link_to
"Sign in / Register"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in'
%button
.navbar-toggle.hidden-sm.hidden-md.hidden-lg
{
type:
'button'
}
%span
.sr-only
Toggle navigation
=
icon
(
'ellipsis-v'
,
class:
'js-navbar-toggle-right'
)
=
icon
(
'times'
,
class:
'js-navbar-toggle-left'
)
=
render
'shared/outdated_browser'
app/views/layouts/header/_new_dropdown.haml
View file @
1632ffa6
%li
.header-new.dropdown
=
link_to
new_project_path
,
class:
"header-new-dropdown-toggle has-tooltip"
,
title:
"New..."
,
ref:
'tooltip'
,
aria:
{
label:
"New..."
},
data:
{
toggle:
'dropdown'
,
placement:
'bottom'
,
container:
'body'
}
do
-
if
show_new_nav?
=
custom_icon
(
'plus_square'
)
=
custom_icon
(
'caret_down'
)
-
else
=
icon
(
'plus fw'
)
=
custom_icon
(
'caret_down'
)
=
custom_icon
(
'plus_square'
)
=
custom_icon
(
'caret_down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
-
if
@group
&
.
persisted?
...
...
app/views/layouts/nav/_admin.html.haml
deleted
100644 → 0
View file @
f497f170
=
render
'layouts/nav/admin_settings'
.scrolling-tabs-container
{
class:
nav_control_class
}
.fade-left
=
icon
(
'angle-left'
)
.fade-right
=
icon
(
'angle-right'
)
%ul
.nav-links.scrolling-tabs
=
nav_link
(
controller:
%w(dashboard admin projects users groups builds runners cohorts)
,
html_options:
{
class:
'home'
})
do
=
link_to
admin_root_path
,
title:
'Overview'
,
class:
'shortcuts-tree'
do
%span
Overview
=
nav_link
(
controller:
%w(conversational_development_index system_info background_jobs logs health_check requests_profiles)
)
do
=
link_to
admin_conversational_development_index_path
,
title:
'Monitoring'
do
%span
Monitoring
=
nav_link
(
controller: :broadcast_messages
)
do
=
link_to
admin_broadcast_messages_path
,
title:
'Messages'
do
%span
Messages
=
nav_link
(
controller:
[
:hooks
,
:hook_logs
])
do
=
link_to
admin_hooks_path
,
title:
'Hooks'
do
%span
System Hooks
=
nav_link
(
controller: :applications
)
do
=
link_to
admin_applications_path
,
title:
'Applications'
do
%span
Applications
=
nav_link
(
controller: :abuse_reports
)
do
=
link_to
admin_abuse_reports_path
,
title:
"Abuse Reports"
do
%span
Abuse Reports
%span
.badge.count
=
number_with_delimiter
(
AbuseReport
.
count
(
:all
))
-
if
akismet_enabled?
=
nav_link
(
controller: :spam_logs
)
do
=
link_to
admin_spam_logs_path
,
title:
"Spam Logs"
do
%span
Spam Logs
app/views/layouts/nav/_admin_settings.html.haml
deleted
100644 → 0
View file @
f497f170
.controls
.dropdown.admin-settings-dropdown
%a
.dropdown-new.btn.btn-default
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
=
icon
(
'cog'
)
=
icon
(
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
admin_deploy_keys_path
,
title:
'Deploy Keys'
do
%span
Deploy Keys
=
nav_link
(
controller: :services
)
do
=
link_to
admin_application_settings_services_path
,
title:
'Service Templates'
do
%span
Service Templates
=
nav_link
(
controller: :labels
)
do
=
link_to
admin_labels_path
,
title:
'Labels'
do
%span
Labels
=
nav_link
(
controller: :appearances
)
do
=
link_to
admin_appearances_path
,
title:
'Appearances'
do
%span
Appearance
%li
.divider
=
nav_link
(
controller: :application_settings
)
do
=
link_to
admin_application_settings_path
,
title:
'Settings'
do
%span
Settings
app/views/layouts/nav/_breadcrumbs.html.haml
View file @
1632ffa6
...
...
@@ -4,7 +4,7 @@
%nav
.breadcrumbs
{
role:
"navigation"
}
.breadcrumbs-container
{
class:
[
container
,
@content_class
]
}
-
if
defined?
(
@
new
_sidebar
)
-
if
defined?
(
@
left
_sidebar
)
=
button_tag
class:
'toggle-mobile-nav'
,
type:
'button'
do
%span
.sr-only
Open sidebar
=
icon
(
'bars'
)
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
1632ffa6
%ul
=
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
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
P
%span
Projects
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
class:
'dashboard-shortcuts-activity'
,
title:
'Activity'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
A
%span
Activity
-
if
koding_enabled?
=
nav_link
(
controller: :koding
)
do
=
link_to
koding_path
,
title:
'Koding'
do
%span
Koding
=
nav_link
(
controller:
[
:groups
,
'groups/milestones'
,
'groups/group_members'
])
do
%ul
.list-unstyled.navbar-sub-nav
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
id:
'nav-projects-dropdown'
,
class:
"home dropdown"
})
do
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
Projects
=
custom_icon
(
'caret_down'
)
.dropdown-menu.projects-dropdown-menu
=
render
"layouts/nav/projects_dropdown/show"
=
nav_link
(
controller:
[
'dashboard/groups'
,
'explore/groups'
],
html_options:
{
class:
"hidden-xs"
})
do
=
link_to
dashboard_groups_path
,
class:
'dashboard-shortcuts-groups'
,
title:
'Groups'
do
.shortcut-mapping
s
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
G
%span
Groups
=
nav_link
(
controller:
'dashboard/milestones'
)
do
Group
s
=
nav_link
(
path:
'dashboard#activity'
,
html_options:
{
class:
"visible-lg"
})
do
=
link_to
activity_dashboard_path
,
class:
'dashboard-shortcuts-activity'
,
title:
'Activity'
do
Activity
=
nav_link
(
controller:
'dashboard/milestones'
,
html_options:
{
class:
"visible-lg"
}
)
do
=
link_to
dashboard_milestones_path
,
class:
'dashboard-shortcuts-milestones'
,
title:
'Milestones'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
L
%span
Milestones
=
nav_link
(
path:
'dashboard#issues'
)
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
I
%span
.badge.pull-right
=
number_with_delimiter
(
assigned_issuables_count
(
:issues
))
%span
Issues
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'dashboard-shortcuts-merge_requests'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
M
%span
.badge.pull-right
=
number_with_delimiter
(
assigned_issuables_count
(
:merge_requests
))
%span
Merge Requests
=
nav_link
(
controller:
'dashboard/snippets'
)
do
Milestones
=
nav_link
(
controller:
'dashboard/snippets'
,
html_options:
{
class:
"visible-lg"
})
do
=
link_to
dashboard_snippets_path
,
class:
'dashboard-shortcuts-snippets'
,
title:
'Snippets'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
S
%span
Snippets
%li
.divider
%li
=
link_to
"Help"
,
help_path
,
title:
'About GitLab CE'
,
class:
'about-gitlab'
Snippets
%li
.dropdown.hidden-lg
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
More
=
custom_icon
(
'caret_down'
)
.dropdown-menu
%ul
=
nav_link
(
controller:
[
'dashboard/groups'
,
'explore/groups'
],
html_options:
{
class:
"visible-xs"
})
do
=
link_to
dashboard_groups_path
,
class:
'dashboard-shortcuts-groups'
,
title:
'Groups'
do
Groups
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
title:
'Activity'
do
Activity
=
nav_link
(
controller:
'dashboard/milestones'
)
do
=
link_to
dashboard_milestones_path
,
class:
'dashboard-shortcuts-milestones'
,
title:
'Milestones'
do
Milestones
=
nav_link
(
controller:
'dashboard/snippets'
)
do
=
link_to
dashboard_snippets_path
,
class:
'dashboard-shortcuts-snippets'
,
title:
'Snippets'
do
Snippets
-# Shortcut to Dashboard > Projects
%li
.hidden
=
link_to
dashboard_projects_path
,
title:
'Projects'
,
class:
'dashboard-shortcuts-projects'
do
Projects
-
if
current_user
.
admin?
||
Gitlab
::
Sherlock
.
enabled?
%li
.line-separator.hidden-xs
-
if
current_user
.
admin?
=
nav_link
(
controller:
'admin/dashboard'
)
do
=
link_to
admin_root_path
,
class:
'admin-icon'
,
title:
'Admin area'
,
aria:
{
label:
"Admin area"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'wrench fw'
)
-
if
Gitlab
::
Sherlock
.
enabled?
%li
=
link_to
sherlock_transactions_path
,
class:
'admin-icon'
,
title:
'Sherlock Transactions'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'tachometer fw'
)
app/views/layouts/nav/_explore.html.haml
View file @
1632ffa6
%ul
%ul
.list-unstyled.navbar-sub-nav
=
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'
,
class:
'dashboard-shortcuts-projects'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
P
%span
Projects
Projects
=
nav_link
(
controller:
[
:groups
,
'groups/milestones'
,
'groups/group_members'
])
do
=
link_to
explore_groups_path
,
title:
'Groups'
,
class:
'dashboard-shortcuts-groups'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
G
%span
Groups
Groups
=
nav_link
(
controller: :snippets
)
do
=
link_to
explore_snippets_path
,
title:
'Snippets'
,
class:
'dashboard-shortcuts-snippets'
do
.shortcut-mappings
.key
=
icon
(
'arrow-up'
,
'aria-label'
=>
'hidden'
)
S
%span
Snippets
%li
.divider
=
nav_link
(
controller: :help
)
do
=
link_to
help_path
,
title:
'Help'
do
%span
Help
Snippets
%li
=
link_to
"Help"
,
help_path
,
title:
'About GitLab CE'
app/views/layouts/nav/_group.html.haml
deleted
100644 → 0
View file @
f497f170
.scrolling-tabs-container
{
class:
nav_control_class
}
.fade-left
=
icon
(
'angle-left'
)
.fade-right
=
icon
(
'angle-right'
)
%ul
.nav-links.scrolling-tabs
=
nav_link
(
path:
[
'groups#show'
,
'groups#activity'
,
'groups#subgroups'
],
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
),
title:
'Home'
do
%span
Group
=
nav_link
(
path:
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
])
do
=
link_to
issues_group_path
(
@group
),
title:
'Issues'
do
%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
%span
Merge Requests
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
,
non_archived:
true
).
execute
%span
.badge.count
=
number_with_delimiter
(
merge_requests
.
count
)
=
nav_link
(
path:
'group_members#index'
)
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
%span
Members
-
if
current_user
&&
can?
(
current_user
,
:admin_group
,
@group
)
=
nav_link
(
path:
%w[groups#projects groups#edit ci_cd#show]
)
do
=
link_to
edit_group_path
(
@group
),
title:
'Settings'
do
%span
Settings
app/views/layouts/nav/_new_dashboard.html.haml
deleted
100644 → 0
View file @
f497f170
%ul
.list-unstyled.navbar-sub-nav
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
id:
'nav-projects-dropdown'
,
class:
"home dropdown"
})
do
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
Projects
=
custom_icon
(
'caret_down'
)
.dropdown-menu.projects-dropdown-menu
=
render
"layouts/nav/projects_dropdown/show"
=
nav_link
(
controller:
[
'dashboard/groups'
,
'explore/groups'
],
html_options:
{
class:
"hidden-xs"
})
do
=
link_to
dashboard_groups_path
,
class:
'dashboard-shortcuts-groups'
,
title:
'Groups'
do
Groups
=
nav_link
(
path:
'dashboard#activity'
,
html_options:
{
class:
"visible-lg"
})
do
=
link_to
activity_dashboard_path
,
class:
'dashboard-shortcuts-activity'
,
title:
'Activity'
do
Activity
=
nav_link
(
controller:
'dashboard/milestones'
,
html_options:
{
class:
"visible-lg"
})
do
=
link_to
dashboard_milestones_path
,
class:
'dashboard-shortcuts-milestones'
,
title:
'Milestones'
do
Milestones
=
nav_link
(
controller:
'dashboard/snippets'
,
html_options:
{
class:
"visible-lg"
})
do
=
link_to
dashboard_snippets_path
,
class:
'dashboard-shortcuts-snippets'
,
title:
'Snippets'
do
Snippets
%li
.dropdown.hidden-lg
%a
{
href:
"#"
,
data:
{
toggle:
"dropdown"
}
}
More
=
custom_icon
(
'caret_down'
)
.dropdown-menu
%ul
=
nav_link
(
controller:
[
'dashboard/groups'
,
'explore/groups'
],
html_options:
{
class:
"visible-xs"
})
do
=
link_to
dashboard_groups_path
,
class:
'dashboard-shortcuts-groups'
,
title:
'Groups'
do
Groups
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
title:
'Activity'
do
Activity
=
nav_link
(
controller:
'dashboard/milestones'
)
do
=
link_to
dashboard_milestones_path
,
class:
'dashboard-shortcuts-milestones'
,
title:
'Milestones'
do
Milestones
=
nav_link
(
controller:
'dashboard/snippets'
)
do
=
link_to
dashboard_snippets_path
,
class:
'dashboard-shortcuts-snippets'
,
title:
'Snippets'
do
Snippets
-# Shortcut to Dashboard > Projects
%li
.hidden
=
link_to
dashboard_projects_path
,
title:
'Projects'
,
class:
'dashboard-shortcuts-projects'
do
Projects
-
if
current_user
.
admin?
||
Gitlab
::
Sherlock
.
enabled?
%li
.line-separator.hidden-xs
-
if
current_user
.
admin?
=
nav_link
(
controller:
'admin/dashboard'
)
do
=
link_to
admin_root_path
,
class:
'admin-icon'
,
title:
'Admin area'
,
aria:
{
label:
"Admin area"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'wrench fw'
)
-
if
Gitlab
::
Sherlock
.
enabled?
%li
=
link_to
sherlock_transactions_path
,
class:
'admin-icon'
,
title:
'Sherlock Transactions'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'tachometer fw'
)
app/views/layouts/nav/_new_explore.html.haml
deleted
100644 → 0
View file @
f497f170
%ul
.list-unstyled.navbar-sub-nav
=
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'
,
class:
'dashboard-shortcuts-projects'
do
Projects
=
nav_link
(
controller:
[
:groups
,
'groups/milestones'
,
'groups/group_members'
])
do
=
link_to
explore_groups_path
,
title:
'Groups'
,
class:
'dashboard-shortcuts-groups'
do
Groups
=
nav_link
(
controller: :snippets
)
do
=
link_to
explore_snippets_path
,
title:
'Snippets'
,
class:
'dashboard-shortcuts-snippets'
do
Snippets
%li
=
link_to
"Help"
,
help_path
,
title:
'About GitLab CE'
app/views/layouts/nav/_profile.html.haml
deleted
100644 → 0
View file @
f497f170
.scrolling-tabs-container
.fade-left
=
icon
(
'angle-left'
)
.fade-right
=
icon
(
'angle-right'
)
%ul
.nav-links.scrolling-tabs
=
nav_link
(
path:
'profiles#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
profile_path
,
title:
'Profile Settings'
do
%span
Profile
=
nav_link
(
controller:
[
:accounts
,
:two_factor_auths
])
do
=
link_to
profile_account_path
,
title:
'Account'
do
%span
Account
-
if
current_application_settings
.
user_oauth_applications?
=
nav_link
(
controller:
'oauth/applications'
)
do
=
link_to
applications_profile_path
,
title:
'Applications'
do
%span
Applications
=
nav_link
(
controller: :chat_names
)
do
=
link_to
profile_chat_names_path
,
title:
'Chat'
do
%span
Chat
=
nav_link
(
controller: :personal_access_tokens
)
do
=
link_to
profile_personal_access_tokens_path
,
title:
'Access Tokens'
do
%span
Access Tokens
=
nav_link
(
controller: :emails
)
do
=
link_to
profile_emails_path
,
title:
'Emails'
do
%span
Emails
-
unless
current_user
.
ldap_user?
=
nav_link
(
controller: :passwords
)
do
=
link_to
edit_profile_password_path
,
title:
'Password'
do
%span
Password
=
nav_link
(
controller: :notifications
)
do
=
link_to
profile_notifications_path
,
title:
'Notifications'
do
%span
Notifications
=
nav_link
(
controller: :keys
)
do
=
link_to
profile_keys_path
,
title:
'SSH Keys'
do
%span
SSH Keys
=
nav_link
(
controller: :gpg_keys
)
do
=
link_to
profile_gpg_keys_path
,
title:
'GPG Keys'
do
%span
GPG Keys
=
nav_link
(
controller: :preferences
)
do
=
link_to
profile_preferences_path
,
title:
'Preferences'
do
%span
Preferences
=
nav_link
(
path:
'profiles#audit_log'
)
do
=
link_to
audit_log_profile_path
,
title:
'Authentication log'
do
%span
Authentication log
app/views/layouts/nav/_project.html.haml
deleted
100644 → 0
View file @
f497f170
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
.scrolling-tabs-container
{
class:
nav_control_class
}
.fade-left
=
icon
(
'angle-left'
)
.fade-right
=
icon
(
'angle-right'
)
%ul
.nav-links.scrolling-tabs
=
nav_link
(
path:
[
'projects#show'
,
'projects#activity'
,
'cycle_analytics#show'
],
html_options:
{
class:
'home'
})
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-project'
do
%span
Project
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare projects/repositories tags branches releases graphs network)
)
do
=
link_to
project_tree_path
(
@project
),
title:
'Repository'
,
class:
'shortcuts-tree'
do
%span
Repository
-
if
project_nav_tab?
:container_registry
=
nav_link
(
controller:
%w[projects/registry/repositories]
)
do
=
link_to
project_container_registry_index_path
(
@project
),
title:
'Container Registry'
,
class:
'shortcuts-container-registry'
do
%span
Registry
-
if
project_nav_tab?
:issues
=
nav_link
(
controller:
@project
.
issues_enabled?
?
[:
issues
,
:labels
,
:milestones
,
:boards
]
:
:issues
)
do
=
link_to
project_issues_path
(
@project
),
title:
'Issues'
,
class:
'shortcuts-issues'
do
%span
Issues
-
if
@project
.
issues_enabled?
%span
.badge.count.issue_counter
=
number_with_delimiter
(
@project
.
open_issues_count
)
-
if
project_nav_tab?
:merge_requests
-
controllers
=
[
:merge_requests
,
'projects/merge_requests/conflicts'
]
-
controllers
.
push
(
:merge_requests
,
:labels
,
:milestones
)
unless
@project
.
issues_enabled?
=
nav_link
(
controller:
controllers
)
do
=
link_to
project_merge_requests_path
(
@project
),
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
%span
Merge Requests
%span
.badge.count.merge_counter.js-merge-counter
=
number_with_delimiter
(
@project
.
open_merge_requests_count
)
-
if
project_nav_tab?
:pipelines
=
nav_link
(
controller:
[
:pipelines
,
:builds
,
:environments
,
:artifacts
])
do
=
link_to
project_pipelines_path
(
@project
),
title:
'Pipelines'
,
class:
'shortcuts-pipelines'
do
%span
Pipelines
-
if
project_nav_tab?
:wiki
=
nav_link
(
controller: :wikis
)
do
=
link_to
get_project_wiki_path
(
@project
),
title:
'Wiki'
,
class:
'shortcuts-wiki'
do
%span
Wiki
-
if
project_nav_tab?
:snippets
=
nav_link
(
controller: :snippets
)
do
=
link_to
project_snippets_path
(
@project
),
title:
'Snippets'
,
class:
'shortcuts-snippets'
do
%span
Snippets
-
if
project_nav_tab?
:project_members
=
nav_link
(
controller: :project_members
)
do
=
link_to
project_project_members_path
(
@project
),
title:
'Members'
,
class:
'shortcuts-members'
do
%span
Members
-
if
project_nav_tab?
:settings
=
nav_link
(
path:
%w[projects#edit members#show integrations#show services#edit repository#show ci_cd#show pages#show]
)
do
=
link_to
edit_project_path
(
@project
),
title:
'Settings'
,
class:
'shortcuts-tree'
do
%span
Settings
-# Shortcut to Project > Activity
%li
.hidden
=
link_to
activity_project_path
(
@project
),
title:
'Activity'
,
class:
'shortcuts-project-activity'
do
%span
Activity
-# Shortcut to Repository > Graph (formerly, Network)
-
if
project_nav_tab?
:network
%li
.hidden
=
link_to
project_network_path
(
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
do
Graph
-# Shortcut to Repository > Charts (formerly, top-nav item "Graphs")
-
unless
@project
.
empty_repo?
%li
.hidden
=
link_to
charts_project_graph_path
(
@project
,
current_ref
),
title:
'Charts'
,
class:
'shortcuts-repository-charts'
do
Charts
-# Shortcut to Issues > New Issue
%li
.hidden
=
link_to
new_project_issue_path
(
@project
),
class:
'shortcuts-new-issue'
do
Create a new issue
-# Shortcut to Pipelines > Jobs
-
if
project_nav_tab?
:builds
%li
.hidden
=
link_to
project_jobs_path
(
@project
),
title:
'Jobs'
,
class:
'shortcuts-builds'
do
Jobs
-# Shortcut to commits page
-
if
project_nav_tab?
:commits
%li
.hidden
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
Commits
-# Shortcut to issue boards
%li
.hidden
=
link_to
'Issue Boards'
,
project_boards_path
(
@project
),
title:
'Issue Boards'
,
class:
'shortcuts-issue-boards'
app/views/layouts/nav/
_new_admin_sidebar
.html.haml
→
app/views/layouts/nav/
sidebar/_admin
.html.haml
View file @
1632ffa6
File moved
app/views/layouts/nav/
_new_group_sidebar
.html.haml
→
app/views/layouts/nav/
sidebar/_group
.html.haml
View file @
1632ffa6
File moved
app/views/layouts/nav/
_new_profile_sidebar
.html.haml
→
app/views/layouts/nav/
sidebar/_profile
.html.haml
View file @
1632ffa6
File moved
app/views/layouts/nav/
_new_project_sidebar
.html.haml
→
app/views/layouts/nav/
sidebar/_project
.html.haml
View file @
1632ffa6
File moved
app/views/layouts/profile.html.haml
View file @
1632ffa6
-
page_title
"User Settings"
-
header_title
"User Settings"
,
profile_path
unless
header_title
-
sidebar
"dashboard"
-
if
show_new_nav?
-
nav
"new_profile_sidebar"
-
@new_sidebar
=
true
-
else
-
nav
"profile"
-
nav
"profile"
-
@left_sidebar
=
true
=
render
template:
"layouts/application"
app/views/layouts/project.html.haml
View file @
1632ffa6
-
page_title
@project
.
name_with_namespace
-
page_description
@project
.
description
unless
page_description
-
header_title
project_title
(
@project
)
unless
header_title
-
if
show_new_nav?
-
nav
"new_project_sidebar"
-
@new_sidebar
=
true
-
else
-
nav
"project"
-
nav
"project"
-
@left_sidebar
=
true
-
content_for
:project_javascripts
do
-
project
=
@target_project
||
@project
...
...
app/views/profiles/two_factor_auths/show.html.haml
View file @
1632ffa6
-
page_title
'Two-Factor Authentication'
,
'Account'
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Account"
,
profile_account_path
)
-
else
-
header_title
"Two-Factor Authentication"
,
profile_two_factor_auth_path
-
add_to_breadcrumbs
(
"Account"
,
profile_account_path
)
-
@content_class
=
"limit-container-width"
unless
fluid_layout
=
render
'profiles/head'
...
...
app/views/projects/_flash_messages.html.haml
View file @
1632ffa6
-
project
=
local_assigns
.
fetch
(
:project
)
-
flash_message_container
=
show_new_nav?
?
:
new_global_flash
:
:flash_message
=
content_for
flash_message_container
do
=
content_for
:flash_message
do
=
render
partial:
'deletion_failed'
,
locals:
{
project:
project
}
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
project
)
=
render
'shared/no_ssh'
...
...
app/views/projects/activity.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
if
show_new_nav?
-
add_to_breadcrumbs
(
_
(
"Project"
),
project_path
(
@project
))
-
add_to_breadcrumbs
(
_
(
"Project"
),
project_path
(
@project
))
-
page_title
_
(
"Activity"
)
=
render
"projects/head"
...
...
app/views/projects/boards/_show.html.haml
View file @
1632ffa6
...
...
@@ -2,9 +2,7 @@
-
@no_container
=
true
-
@content_class
=
"issue-boards-content"
-
page_title
"Boards"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Issues"
,
project_issues_path
(
@project
))
-
add_to_breadcrumbs
(
"Issues"
,
project_issues_path
(
@project
))
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
...
...
app/views/projects/branches/index.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
"Branches"
=
render
"projects/commits/head"
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
render
"projects/commits/head"
%div
{
class:
container_class
}
.top-area.adjust
...
...
app/views/projects/commits/show.html.haml
View file @
1632ffa6
...
...
@@ -5,8 +5,7 @@
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_commits_url
(
@project
,
@ref
,
rss_url_options
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
content_for
:sub_nav
do
=
render
"head"
...
...
app/views/projects/compare/index.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
"Compare"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
render
"projects/commits/head"
%div
{
class:
container_class
}
...
...
app/views/projects/compare/show.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
breadcrumb_title
"Compare"
-
page_title
"
#{
params
[
:from
]
}
...
#{
params
[
:to
]
}
"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
render
"projects/commits/head"
%div
{
class:
container_class
}
...
...
app/views/projects/cycle_analytics/show.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
"Cycle Analytics"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Project"
,
project_path
(
@project
))
-
add_to_breadcrumbs
(
"Project"
,
project_path
(
@project
))
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'cycle_analytics'
)
...
...
app/views/projects/environments/index.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
"Environments"
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
=
render
"projects/pipelines/head"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
"environments"
)
...
...
app/views/projects/graphs/charts.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
"Charts"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_d3'
)
=
webpack_bundle_tag
(
'graphs'
)
...
...
app/views/projects/graphs/show.html.haml
View file @
1632ffa6
...
...
@@ -5,8 +5,7 @@
=
webpack_bundle_tag
(
'graphs'
)
=
webpack_bundle_tag
(
'graphs_show'
)
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
render
'projects/commits/head'
...
...
app/views/projects/issues/index.html.haml
View file @
1632ffa6
...
...
@@ -13,15 +13,14 @@
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
params
.
merge
(
rss_url_options
),
title:
"
#{
@project
.
name
}
issues"
)
-
if
show_new_nav?
-
content_for
:breadcrumbs_extra
do
=
render
"projects/issues/nav_btns"
-
content_for
:breadcrumbs_extra
do
=
render
"projects/issues/nav_btns"
-
if
project_issues
(
@project
).
exists?
%div
{
class:
(
container_class
)
}
.top-area
=
render
'shared/issuable/nav'
,
type: :issues
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
render
"projects/issues/nav_btns"
=
render
'shared/issuable/search_bar'
,
type: :issues
...
...
app/views/projects/jobs/index.html.haml
View file @
1632ffa6
...
...
@@ -2,8 +2,7 @@
-
page_title
"Jobs"
=
render
"projects/pipelines/head"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
%div
{
class:
container_class
}
.top-area
...
...
app/views/projects/labels/index.html.haml
View file @
1632ffa6
...
...
@@ -3,7 +3,7 @@
-
hide_class
=
''
-
can_admin_label
=
can?
(
current_user
,
:admin_label
,
@project
)
-
if
show_new_nav?
&&
can?
(
current_user
,
:admin_label
,
@project
)
-
if
can?
(
current_user
,
:admin_label
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New label"
,
new_namespace_project_label_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
...
...
@@ -18,7 +18,7 @@
Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.
-
if
can_admin_label
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
New label
...
...
app/views/projects/merge_requests/index.html.haml
View file @
1632ffa6
...
...
@@ -12,9 +12,8 @@
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'filtered_search'
-
if
show_new_nav?
-
content_for
:breadcrumbs_extra
do
=
render
"projects/merge_requests/nav_btns"
,
merge_project:
merge_project
,
new_merge_request_path:
new_merge_request_path
-
content_for
:breadcrumbs_extra
do
=
render
"projects/merge_requests/nav_btns"
,
merge_project:
merge_project
,
new_merge_request_path:
new_merge_request_path
=
render
'projects/last_push'
...
...
@@ -22,7 +21,7 @@
%div
{
class:
container_class
}
.top-area
=
render
'shared/issuable/nav'
,
type: :merge_requests
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
render
"projects/merge_requests/nav_btns"
,
merge_project:
merge_project
,
new_merge_request_path:
new_merge_request_path
=
render
'shared/issuable/search_bar'
,
type: :merge_requests
...
...
app/views/projects/milestones/index.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
'Milestones'
-
if
show_new_nav?
&&
can?
(
current_user
,
:admin_milestone
,
@project
)
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New milestone"
,
new_namespace_project_milestone_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-new'
,
title:
'New milestone'
...
...
@@ -11,10 +11,10 @@
.top-area
=
render
'shared/milestones_filter'
,
counts:
milestone_counts
(
@project
.
milestones
)
.nav-controls
{
class:
(
"nav-controls-new-nav"
if
show_new_nav?
)
}
.nav-controls
.nav-controls-new-nav
=
render
'shared/milestones_sort_dropdown'
-
if
can?
(
current_user
,
:admin_milestone
,
@project
)
=
link_to
new_project_milestone_path
(
@project
),
class:
"btn btn-new
#{
(
"visible-xs"
if
show_new_nav?
)
}
"
,
title:
'New milestone'
do
=
link_to
new_project_milestone_path
(
@project
),
class:
"btn btn-new
visible-xs
"
,
title:
'New milestone'
do
New milestone
.milestones
...
...
app/views/projects/network/show.html.haml
View file @
1632ffa6
...
...
@@ -2,8 +2,7 @@
-
page_title
"Graph"
,
@ref
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'network'
)
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
render
"projects/commits/head"
=
render
"head"
%div
{
class:
container_class
}
...
...
app/views/projects/pipeline_schedules/index.html.haml
View file @
1632ffa6
...
...
@@ -7,11 +7,11 @@
-
@no_container
=
true
-
page_title
_
(
"Pipeline Schedules"
)
-
if
show_new_nav?
&&
can?
(
current_user
,
:create_pipeline_schedule
,
@project
)
-
if
can?
(
current_user
,
:create_pipeline_schedule
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
_
(
'New schedule'
),
new_namespace_project_pipeline_schedule_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
=
render
"projects/pipelines/head"
...
...
@@ -22,7 +22,7 @@
=
render
"tabs"
,
schedule_path_proc:
schedule_path_proc
,
all_schedules:
@all_schedules
,
scope:
@scope
-
if
can?
(
current_user
,
:create_pipeline_schedule
,
@project
)
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
=
link_to
new_project_pipeline_schedule_path
(
@project
),
class:
'btn btn-create'
do
%span
=
_
(
'New schedule'
)
...
...
app/views/projects/pipeline_schedules/new.html.haml
View file @
1632ffa6
...
...
@@ -2,8 +2,7 @@
-
@breadcrumb_link
=
namespace_project_pipeline_schedules_path
(
@project
.
namespace
,
@project
)
-
page_title
_
(
"New Pipeline Schedule"
)
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
%h3
.page-title
=
_
(
"Schedule a new pipeline"
)
...
...
app/views/projects/pipelines/charts.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
page_title
_
(
"Charts"
),
_
(
"Pipelines"
)
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
add_to_breadcrumbs
(
"Pipelines"
,
project_pipelines_path
(
@project
))
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_d3'
)
=
page_specific_javascript_bundle_tag
(
'graphs'
)
...
...
app/views/projects/project_members/index.html.haml
View file @
1632ffa6
-
page_title
"Members"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
.row.prepend-top-default
.col-lg-12
...
...
app/views/projects/services/edit.html.haml
View file @
1632ffa6
-
breadcrumb_title
"Integrations"
-
page_title
@service
.
title
,
"Services"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
=
render
"projects/settings/head"
=
render
'form'
app/views/projects/settings/ci_cd/show.html.haml
View file @
1632ffa6
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
page_title
"Pipelines"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
=
render
"projects/settings/head"
...
...
app/views/projects/settings/integrations/show.html.haml
View file @
1632ffa6
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
page_title
'Integrations'
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
=
render
"projects/settings/head"
=
render
'projects/hooks/index'
=
render
'projects/services/index'
app/views/projects/settings/repository/show.html.haml
View file @
1632ffa6
-
page_title
"Repository"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
-
add_to_breadcrumbs
(
"Settings"
,
edit_project_path
(
@project
))
=
render
"projects/settings/head"
...
...
app/views/projects/snippets/index.html.haml
View file @
1632ffa6
-
page_title
"Snippets"
-
if
show_new_nav?
&&
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
if
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
content_for
:breadcrumbs_extra
do
=
link_to
"New snippet"
,
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
,
title:
"New snippet"
...
...
@@ -9,7 +9,7 @@
-
include_private
=
@project
.
team
.
member?
(
current_user
)
||
current_user
.
admin?
=
render
partial:
'snippets/snippets_scope_menu'
,
locals:
{
subject:
@project
,
include_private:
include_private
}
.nav-controls
{
class:
(
"visible-xs"
if
show_new_nav?
)
}
.nav-controls
.visible-xs
-
if
can?
(
current_user
,
:create_project_snippet
,
@project
)
=
link_to
"New snippet"
,
new_project_snippet_path
(
@project
),
class:
"btn btn-new"
,
title:
"New snippet"
...
...
app/views/projects/tags/index.html.haml
View file @
1632ffa6
-
@no_container
=
true
-
@sort
||=
sort_value_recently_updated
-
page_title
"Tags"
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
=
render
"projects/commits/head"
-
if
show_new_nav?
-
add_to_breadcrumbs
(
"Repository"
,
project_tree_path
(
@project
))
.flex-list
{
class:
container_class
}
.top-area.adjust
.nav-text.row-main-content
...
...
app/views/shared/issuable/_sidebar.html.haml
View file @
1632ffa6
...
...
@@ -3,7 +3,7 @@
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'sidebar'
)
%aside
.right-sidebar.js-right-sidebar.js-issuable-sidebar
{
data:
{
"offset-top"
=>
(
"50"
unless
show_new_nav?
),
"spy"
=>
(
"affix"
unless
show_new_nav?
),
signed:
{
in:
current_user
.
present?
}
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
%aside
.right-sidebar.js-right-sidebar.js-issuable-sidebar
{
data:
{
signed:
{
in:
current_user
.
present?
}
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
.issuable-sidebar
{
data:
{
endpoint:
"#{issuable_json_path(issuable)}"
}
}
-
can_edit_issuable
=
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
@project
)
.block.issuable-sidebar-header
...
...
spec/views/layouts/nav/_project.html.haml_spec.rb
→
spec/views/layouts/nav/
sidebar/
_project.html.haml_spec.rb
View file @
1632ffa6
require
'spec_helper'
describe
'layouts/nav/_project'
do
describe
'layouts/nav/
sidebar/
_project'
do
describe
'container registry tab'
do
before
do
project
=
create
(
:project
,
:repository
)
stub_container_registry_config
(
enabled:
true
)
assign
(
:project
,
create
(
:project
,
:repository
))
assign
(
:project
,
project
)
assign
(
:repository
,
project
.
repository
)
allow
(
view
).
to
receive
(
:current_ref
).
and_return
(
'master'
)
allow
(
view
).
to
receive
(
:can?
).
and_return
(
true
)
...
...
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