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
Kazuhiko Shiozaki
gitlab-ce
Commits
3c157b6b
Commit
3c157b6b
authored
Feb 23, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show Project name on Labels tab for Group and Dashboard context.
parent
b6e5de2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/views/shared/milestones/_labels_tab.html.haml
app/views/shared/milestones/_labels_tab.html.haml
+8
-1
No files found.
app/views/shared/milestones/_labels_tab.html.haml
View file @
3c157b6b
-
show_project_name
=
local_assigns
.
fetch
(
:show_project_name
,
false
)
-
show_full_project_name
=
local_assigns
.
fetch
(
:show_full_project_name
,
false
)
%ul
.bordered-list.manage-labels-list
-
labels
.
each
do
|
label
|
-
milestone
=
@milestone
.
is_a?
(
Milestone
)
?
@milestone
:
label
.
milestone
%li
=
render_colored_label
(
label
)
-
if
show_project_name
%strong
·
#{
milestone
.
project
.
name
}
-
elsif
show_full_project_name
%strong
·
#{
milestone
.
project
.
name_with_namespace
}
-
args
=
[
milestone
.
project
.
namespace
,
milestone
.
project
,
milestone_title:
milestone
.
title
,
label_name:
label
.
title
]
-
options
=
args
.
extract_options!
%span
.issues-count
=
link_to
namespace_project_issues_path
(
*
args
,
options
.
merge
(
state:
'opened'
))
do
=
pluralize
label
.
open_issues_count
,
'open issue'
...
...
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