Commit c2323a99 authored by Florie Guibert's avatar Florie Guibert

Update epic boards URL

parent 2cae7836
# 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
......@@ -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
......
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment