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
c3b7a738
Commit
c3b7a738
authored
Sep 07, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue board promotions
parent
2a957f68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/app/helpers/ee/boards_helper.rb
ee/app/helpers/ee/boards_helper.rb
+4
-4
No files found.
ee/app/helpers/ee/boards_helper.rb
View file @
c3b7a738
...
...
@@ -7,7 +7,9 @@ module EE
def
board_data
data
=
{
board_milestone_title:
board
&
.
milestone
&
.
title
,
focus_mode_available:
parent
.
feature_available?
(
:issue_board_focus_mode
).
to_s
focus_mode_available:
parent
.
feature_available?
(
:issue_board_focus_mode
).
to_s
,
show_promotion:
(
@project
&&
show_promotions?
&&
(
!
@project
.
feature_available?
(
:multiple_issue_boards
)
||
!
@project
.
feature_available?
(
:issue_board_milestone
)
||
!
@project
.
feature_available?
(
:issue_board_focus_mode
))).
to_s
}
super
.
merge
(
data
)
...
...
@@ -50,9 +52,7 @@ module EE
end
def
board_sidebar_user_data
super
.
merge
(
group_id:
@group
&
.
id
,
focus_mode_available:
parent
.
feature_available?
(
:issue_board_focus_mode
).
to_s
,
show_promotion:
(
@project
&&
show_promotions?
&&
(
!
@project
.
feature_available?
(
:multiple_issue_boards
)
||
!
@project
.
feature_available?
(
:issue_board_milestone
)
||
!
@project
.
feature_available?
(
:issue_board_focus_mode
))).
to_s
)
super
.
merge
(
group_id:
@group
&
.
id
)
end
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