gitlab-org--gitlab-foss/app/helpers/boards_helper.rb
2016-10-12 12:50:47 +01:00

12 lines
342 B
Ruby

module BoardsHelper
def board_data
board = @board || @boards.first
{
endpoint: namespace_project_boards_path(@project.namespace, @project),
board_id: board.id,
disabled: !can?(current_user, :admin_list, @project),
issue_link_base: namespace_project_issues_path(@project.namespace, @project)
}
end
end