2019-12-21 20:55:43 +05:30
|
|
|
- parent = board.resource_parent
|
2019-09-30 21:07:59 +05:30
|
|
|
- milestone_filter_opts = { format: :json }
|
|
|
|
- milestone_filter_opts = milestone_filter_opts.merge(only_group_milestones: true) if board.group_board?
|
|
|
|
- weights = Gitlab.ee? ? ([Issue::WEIGHT_ANY] + Issue.weight_options) : []
|
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
#js-multiple-boards-switcher.inline.boards-switcher{ data: { milestone_path: milestones_filter_path(milestone_filter_opts),
|
2019-09-30 21:07:59 +05:30
|
|
|
board_base_url: board_base_url,
|
|
|
|
has_missing_boards: (!multiple_boards_available? && current_board_parent.boards.size > 1).to_s,
|
2021-04-17 20:07:23 +05:30
|
|
|
can_admin_board: can?(current_user, :admin_issue_board, parent).to_s,
|
2019-09-30 21:07:59 +05:30
|
|
|
multiple_issue_boards_available: parent.multiple_issue_boards_available?.to_s,
|
|
|
|
scoped_issue_board_feature_enabled: Gitlab.ee? && parent.feature_available?(:scoped_issue_board) ? 'true' : 'false',
|
|
|
|
weights: weights.to_json } }
|