2016-10-12 07:50:47 -04:00
|
|
|
module BoardsHelper
|
|
|
|
def board_data
|
|
|
|
board = @board || @boards.first
|
|
|
|
|
|
|
|
{
|
2017-06-29 13:06:35 -04:00
|
|
|
endpoint: project_boards_path(@project),
|
2016-10-12 07:50:47 -04:00
|
|
|
board_id: board.id,
|
2016-10-25 07:57:56 -04:00
|
|
|
disabled: "#{!can?(current_user, :admin_list, @project)}",
|
2017-06-29 13:06:35 -04:00
|
|
|
issue_link_base: project_issues_path(@project),
|
2017-01-31 05:39:44 -05:00
|
|
|
root_path: root_path,
|
2017-06-29 13:06:35 -04:00
|
|
|
bulk_update_path: bulk_update_project_issues_path(@project),
|
2017-04-28 06:27:52 -04:00
|
|
|
default_avatar: image_path(default_avatar)
|
2016-10-12 07:50:47 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|