blob: 38c586ccd31e154720d191258f99ffe400a55e9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|