diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
commit | ee664acb356f8123f4f6b00b73c1e1cf0866c7fb (patch) | |
tree | f8479f94a28f66654c6a4f6fb99bad6b4e86a40e /app/helpers/boards_helper.rb | |
parent | 62f7d5c5b69180e82ae8196b7b429eeffc8e7b4f (diff) |
Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42
Diffstat (limited to 'app/helpers/boards_helper.rb')
-rw-r--r-- | app/helpers/boards_helper.rb | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/app/helpers/boards_helper.rb b/app/helpers/boards_helper.rb index f98e70e41d8..db6cf27566f 100644 --- a/app/helpers/boards_helper.rb +++ b/app/helpers/boards_helper.rb @@ -2,18 +2,15 @@ module BoardsHelper def board - @board ||= @board || @boards.first + @board end def board_data { - boards_endpoint: @boards_endpoint, - lists_endpoint: board_lists_path(board), board_id: board.id, disabled: board.disabled_for?(current_user).to_s, root_path: root_path, full_path: full_path, - bulk_update_path: @bulk_issues_path, can_update: can_update?.to_s, can_admin_list: can_admin_list?.to_s, can_admin_board: can_admin_board?.to_s, @@ -94,14 +91,6 @@ module BoardsHelper !multiple_boards_available? && current_board_parent.boards.size > 1 end - def current_board_path(board) - @current_board_path ||= if board.group_board? - group_board_path(current_board_parent, board) - else - project_board_path(current_board_parent, board) - end - end - def current_board_parent @current_board_parent ||= @group || @project end @@ -121,18 +110,6 @@ module BoardsHelper def can_admin_board? can?(current_user, :admin_issue_board, current_board_parent) end - - def can_admin_issue? - can?(current_user, :admin_issue, current_board_parent) - end - - def serializer - CurrentBoardSerializer.new - end - - def current_board_json - serializer.represent(board).as_json - end end BoardsHelper.prepend_mod_with('BoardsHelper') |