Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
49759fbe
Commit
49759fbe
authored
Apr 13, 2017
by
Kushal Pandya
Committed by
Alfredo Sumaran
Apr 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show sub-nav under Merge Requests when issue tracker is non-default
parent
37ab3891
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
41 additions
and
9 deletions
+41
-9
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+2
-2
app/views/projects/labels/edit.html.haml
app/views/projects/labels/edit.html.haml
+1
-1
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+1
-1
app/views/projects/labels/new.html.haml
app/views/projects/labels/new.html.haml
+1
-1
app/views/projects/merge_requests/_head.html.haml
app/views/projects/merge_requests/_head.html.haml
+21
-0
app/views/projects/merge_requests/index.html.haml
app/views/projects/merge_requests/index.html.haml
+3
-0
app/views/projects/milestones/edit.html.haml
app/views/projects/milestones/edit.html.haml
+1
-1
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+1
-1
app/views/projects/milestones/new.html.haml
app/views/projects/milestones/new.html.haml
+1
-1
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+1
-1
app/views/shared/_mr_head.html.haml
app/views/shared/_mr_head.html.haml
+4
-0
changelogs/unreleased/30779-show-mr-subnav-issue-tracker.yml
changelogs/unreleased/30779-show-mr-subnav-issue-tracker.yml
+4
-0
No files found.
app/views/layouts/nav/_project.html.haml
View file @
49759fbe
...
...
@@ -23,7 +23,7 @@
Registry
-
if
project_nav_tab?
:issues
=
nav_link
(
controller:
[
:issues
,
:labels
,
:milestones
,
:boards
]
)
do
=
nav_link
(
controller:
@project
.
default_issues_tracker?
?
[
:issues
,
:labels
,
:milestones
,
:boards
]
:
:issues
)
do
=
link_to
namespace_project_issues_path
(
@project
.
namespace
,
@project
),
title:
'Issues'
,
class:
'shortcuts-issues'
do
%span
Issues
...
...
@@ -31,7 +31,7 @@
%span
.badge.count.issue_counter
=
number_with_delimiter
(
IssuesFinder
.
new
(
current_user
,
project_id:
@project
.
id
).
execute
.
opened
.
count
)
-
if
project_nav_tab?
:merge_requests
=
nav_link
(
controller:
:merge_requests
)
do
=
nav_link
(
controller:
@project
.
default_issues_tracker?
?
:merge_requests
:
[
:merge_requests
,
:labels
,
:milestones
]
)
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
),
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
%span
Merge Requests
...
...
app/views/projects/labels/edit.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
"Edit"
,
@label
.
name
,
"Labels"
=
render
"
projects/issues/
head"
=
render
"
shared/mr_
head"
%div
{
class:
container_class
}
%h3
.page-title
...
...
app/views/projects/labels/index.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
"Labels"
-
hide_class
=
''
=
render
"
projects/issues/
head"
=
render
"
shared/mr_
head"
-
if
@labels
.
exists?
||
@prioritized_labels
.
exists?
%div
{
class:
container_class
}
...
...
app/views/projects/labels/new.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
"New Label"
=
render
"
projects/issues/
head"
=
render
"
shared/mr_
head"
%div
{
class:
container_class
}
%h3
.page-title
...
...
app/views/projects/merge_requests/_head.html.haml
0 → 100644
View file @
49759fbe
=
content_for
:sub_nav
do
.scrolling-tabs-container.sub-nav-scroll
=
render
'shared/nav_scroll'
.nav-links.sub-nav.scrolling-tabs
%ul
{
class:
(
container_class
)
}
=
nav_link
(
controller: :merge_requests
)
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
),
title:
'Merge Requests'
do
%span
List
-
if
project_nav_tab?
:labels
=
nav_link
(
controller: :labels
)
do
=
link_to
namespace_project_labels_path
(
@project
.
namespace
,
@project
),
title:
'Labels'
do
%span
Labels
-
if
project_nav_tab?
:milestones
=
nav_link
(
controller: :milestones
)
do
=
link_to
namespace_project_milestones_path
(
@project
.
namespace
,
@project
),
title:
'Milestones'
do
%span
Milestones
app/views/projects/merge_requests/index.html.haml
View file @
49759fbe
...
...
@@ -2,6 +2,9 @@
-
@bulk_edit
=
can?
(
current_user
,
:admin_merge_request
,
@project
)
-
page_title
"Merge Requests"
-
unless
@project
.
default_issues_tracker?
=
content_for
:sub_nav
do
=
render
"projects/merge_requests/head"
=
render
'projects/last_push'
-
content_for
:page_specific_javascripts
do
...
...
app/views/projects/milestones/edit.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
"Edit"
,
@milestone
.
title
,
"Milestones"
=
render
"
projects/issues/
head"
=
render
"
shared/mr_
head"
%div
{
class:
container_class
}
...
...
app/views/projects/milestones/index.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
'Milestones'
=
render
'projects/issues/head'
=
render
"shared/mr_head"
%div
{
class:
container_class
}
.top-area
...
...
app/views/projects/milestones/new.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
"New Milestone"
=
render
"
projects/issues/
head"
=
render
"
shared/mr_
head"
%div
{
class:
container_class
}
%h3
.page-title
...
...
app/views/projects/milestones/show.html.haml
View file @
49759fbe
-
@no_container
=
true
-
page_title
@milestone
.
title
,
"Milestones"
-
page_description
@milestone
.
description
=
render
"
projects/issues/
head"
=
render
"
shared/mr_
head"
%div
{
class:
container_class
}
.detail-page-header.milestone-page-header
...
...
app/views/shared/_mr_head.html.haml
0 → 100644
View file @
49759fbe
-
if
@project
.
default_issues_tracker?
=
render
"projects/issues/head"
-
else
=
render
"projects/merge_requests/head"
changelogs/unreleased/30779-show-mr-subnav-issue-tracker.yml
0 → 100644
View file @
49759fbe
---
title
:
Show sub-nav under Merge Requests when issue tracker is non-default.
merge_request
:
10658
author
:
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