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

16 lines
432 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
module BoardsHelper
def board_data
board = @board || @boards.first
{
2017-09-10 17:25:29 +05:30
endpoint: project_boards_path(@project),
2016-11-03 12:29:30 +05:30
board_id: board.id,
disabled: "#{!can?(current_user, :admin_list, @project)}",
2017-09-10 17:25:29 +05:30
issue_link_base: project_issues_path(@project),
2017-08-17 22:00:37 +05:30
root_path: root_path,
2017-09-10 17:25:29 +05:30
bulk_update_path: bulk_update_project_issues_path(@project),
2017-08-17 22:00:37 +05:30
default_avatar: image_path(default_avatar)
2016-11-03 12:29:30 +05:30
}
end
end