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
c2323a99
Commit
c2323a99
authored
Jan 25, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update epic boards URL
parent
2cae7836
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
ee/app/controllers/groups/epic_boards_controller.rb
ee/app/controllers/groups/epic_boards_controller.rb
+8
-0
ee/app/views/layouts/nav/ee/_epic_link.html.haml
ee/app/views/layouts/nav/ee/_epic_link.html.haml
+2
-2
ee/config/routes/group.rb
ee/config/routes/group.rb
+6
-0
No files found.
ee/app/controllers/groups/epic_boards_controller.rb
0 → 100644
View file @
c2323a99
# frozen_string_literal: true
class
Groups::EpicBoardsController
<
Groups
::
BoardsController
include
BoardsActions
before_action
:authorize_read_board!
,
only:
[
:index
]
def
authorize_read_board!
access_denied!
unless
can?
(
current_user
,
:read_epic_board
,
group
)
end
end
ee/app/views/layouts/nav/ee/_epic_link.html.haml
View file @
c2323a99
...
...
@@ -21,8 +21,8 @@
%span
=
_
(
'List'
)
-
if
Feature
.
enabled?
(
:epic_boards
,
@group
)
=
nav_link
(
path:
'epic_boards#show'
,
html_options:
{
class:
"
#{
active_when
(
params
[
:board_type
]
==
'epic'
)
}
home"
})
do
=
link_to
group_
boards_path
(
group
,
board_type:
"epic"
),
title:
'Boards'
do
=
nav_link
(
path:
[
'epic_boards#index'
,
'epic_boards#show'
],
html_options:
{
class:
"
home"
})
do
=
link_to
group_
epic_boards_path
(
group
),
title:
'Boards'
do
%span
=
_
(
'Boards'
)
=
nav_link
(
path:
'roadmap#show'
,
html_options:
{
class:
'home'
})
do
...
...
ee/config/routes/group.rb
View file @
c2323a99
...
...
@@ -11,6 +11,8 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
patch
:override
,
on: :member
end
get
'/epics/boards'
,
to:
redirect
(
'groups/%{group_id}/-/epic_boards'
)
get
'/analytics'
,
to:
redirect
(
'groups/%{group_id}/-/analytics/value_stream_analytics'
)
resource
:contribution_analytics
,
only:
[
:show
]
...
...
@@ -142,6 +144,10 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
end
end
resources
:epic_boards
,
only:
[
:index
]
do
resources
:lists
,
module: :boards
,
only:
[
:index
]
end
namespace
:security
do
resource
:dashboard
,
only:
[
:show
],
controller: :dashboard
resources
:vulnerabilities
,
only:
[
:index
]
...
...
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