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
e5b8cf0a
Commit
e5b8cf0a
authored
Mar 23, 2015
by
vichak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #8966 Remove Milestones/Labels from project navbar when Isses disabled
parent
a793c065
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
projects_helper.rb
app/helpers/projects_helper.rb
+4
-0
_project.html.haml
app/views/layouts/nav/_project.html.haml
+2
-2
No files found.
app/helpers/projects_helper.rb
View file @
e5b8cf0a
...
...
@@ -146,6 +146,10 @@ module ProjectsHelper
nav_tabs
<<
feature
if
project
.
send
:"
#{
feature
}
_enabled"
end
if
project
.
issues_enabled
nav_tabs
<<
[
:milestones
,
:labels
]
end
nav_tabs
.
flatten
end
...
...
app/views/layouts/nav/_project.html.haml
View file @
e5b8cf0a
...
...
@@ -44,7 +44,7 @@
%span
Graphs
-
if
project_nav_tab?
:
issu
es
-
if
project_nav_tab?
:
mileston
es
=
nav_link
(
controller: :milestones
)
do
=
link_to
namespace_project_milestones_path
(
@project
.
namespace
,
@project
),
title:
'Milestones'
do
%i
.fa.fa-clock-o
...
...
@@ -68,7 +68,7 @@
Merge Requests
%span
.count.merge_counter
=
@project
.
merge_requests
.
opened
.
count
-
if
project_nav_tab?
:
issue
s
-
if
project_nav_tab?
:
label
s
=
nav_link
(
controller: :labels
)
do
=
link_to
namespace_project_labels_path
(
@project
.
namespace
,
@project
),
title:
'Labels'
do
%i
.fa.fa-tags
...
...
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