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
3997e672
Commit
3997e672
authored
Feb 02, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'group-label-sidebar-link' into 'master'
Fixed group label in issuable sidebar Closes #27253 See merge request !8924
parents
4615d099
161d74f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-1
group-label-sidebar-link.yml
changelogs/unreleased/group-label-sidebar-link.yml
+4
-0
group_label_sidebar_spec.rb
spec/features/issues/group_label_sidebar_spec.rb
+21
-0
No files found.
app/views/shared/issuable/_sidebar.html.haml
View file @
3997e672
...
...
@@ -130,7 +130,7 @@
.value.issuable-show-labels.hide-collapsed
{
class:
(
"has-labels"
if
selected_labels
.
any?
)
}
-
if
selected_labels
.
any?
-
selected_labels
.
each
do
|
label
|
=
link_to_label
(
label
,
type:
issuable
.
to_ability_name
)
=
link_to_label
(
label
,
subject:
issuable
.
project
,
type:
issuable
.
to_ability_name
)
-
else
%span
.no-value
None
.selectbox.hide-collapsed
...
...
changelogs/unreleased/group-label-sidebar-link.yml
0 → 100644
View file @
3997e672
---
title
:
Fixed group label links in issue/merge request sidebar
merge_request
:
author
:
spec/features/issues/group_label_sidebar_spec.rb
0 → 100644
View file @
3997e672
require
'rails_helper'
describe
'Group label on issue'
,
:feature
do
it
'renders link to the project issues page'
do
group
=
create
(
:group
)
project
=
create
(
:empty_project
,
:public
,
namespace:
group
)
feature
=
create
(
:group_label
,
group:
group
,
title:
'feature'
)
issue
=
create
(
:labeled_issue
,
project:
project
,
labels:
[
feature
])
label_link
=
namespace_project_issues_path
(
project
.
namespace
,
project
,
label_name:
[
feature
.
name
]
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
link
=
find
(
'.issuable-show-labels a'
)
expect
(
link
[
:href
]).
to
eq
(
label_link
)
end
end
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