2016-10-12 11:50:47 +00:00
|
|
|
module BoardsHelper
|
|
|
|
def board_data
|
|
|
|
board = @board || @boards.first
|
|
|
|
|
|
|
|
{
|
|
|
|
endpoint: namespace_project_boards_path(@project.namespace, @project),
|
|
|
|
board_id: board.id,
|
2016-10-25 11:57:56 +00:00
|
|
|
disabled: "#{!can?(current_user, :admin_list, @project)}",
|
2017-01-31 10:39:44 +00:00
|
|
|
issue_link_base: namespace_project_issues_path(@project.namespace, @project),
|
|
|
|
root_path: root_path,
|
2016-10-12 11:50:47 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|