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
40eb82f1
Commit
40eb82f1
authored
Jul 09, 2019
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scope the :epics_tree feature flag to a group
parent
2084bda2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/controllers/groups/epics_controller.rb
ee/app/controllers/groups/epics_controller.rb
+1
-1
ee/app/views/groups/epics/show.html.haml
ee/app/views/groups/epics/show.html.haml
+2
-2
No files found.
ee/app/controllers/groups/epics_controller.rb
View file @
40eb82f1
...
...
@@ -15,7 +15,7 @@ class Groups::EpicsController < Groups::ApplicationController
before_action
:authorize_create_epic!
,
only:
[
:create
]
before_action
do
push_frontend_feature_flag
(
:epic_trees
)
push_frontend_feature_flag
(
:epic_trees
,
@group
)
end
def
index
...
...
ee/app/views/groups/epics/show.html.haml
View file @
40eb82f1
...
...
@@ -23,7 +23,7 @@
%a
#discussion-tab
.active
{
href:
'#discussion'
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Discussion'
)
%span
.badge.badge-pill
=
@epic
.
notes
.
user
.
count
-
if
Feature
.
enabled?
(
:epic_trees
)
-
if
Feature
.
enabled?
(
:epic_trees
,
@group
)
%li
.tree-tab
%a
#tree-tab
{
href:
'#tree'
,
data:
{
toggle:
'tab'
}
}
=
_
(
'Tree'
)
...
...
@@ -41,7 +41,7 @@
%script
.js-notes-data
{
type:
"application/json"
}=
initial_notes_data
(
true
).
to_json
.
html_safe
.issuable-discussion
=
render
'discussion'
-
if
Feature
.
enabled?
(
:epic_trees
)
-
if
Feature
.
enabled?
(
:epic_trees
,
@group
)
#tree
.tab-pane
.row
%section
.col-md-12
...
...
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