debian-mirror-gitlab/app/helpers/boards_helper.rb

13 lines
347 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
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