BigW Consortium Gitlab

boards_helper.rb 473 Bytes
Newer Older
1 2 3 4 5 6 7
module BoardsHelper
  def board_data
    board = @board || @boards.first

    {
      endpoint: namespace_project_boards_path(@project.namespace, @project),
      board_id: board.id,
8
      disabled: "#{!can?(current_user, :admin_list, @project)}",
9 10
      issue_link_base: namespace_project_issues_path(@project.namespace, @project),
      root_path: root_path,
11
      bulk_update_path: bulk_update_namespace_project_issues_path(@project.namespace, @project),
12 13 14
    }
  end
end