2018-02-19 14:06:16 -05:00
|
|
|
- board = local_assigns.fetch(:board, nil)
|
|
|
|
- group = local_assigns.fetch(:group, false)
|
2020-04-02 14:08:11 -04:00
|
|
|
-# TODO: Move group_id and can_admin_list to the board store
|
|
|
|
See: https://gitlab.com/gitlab-org/gitlab/-/issues/213082
|
2021-03-02 19:10:50 -05:00
|
|
|
- can_admin_list = can?(current_user, :admin_issue_board_list, current_board_parent) == true
|
2017-08-18 04:54:53 -04:00
|
|
|
- @no_breadcrumb_container = true
|
2016-11-04 06:24:59 -04:00
|
|
|
- @no_container = true
|
2018-07-03 12:54:00 -04:00
|
|
|
- @content_class = "issue-boards-content js-focus-mode-board"
|
2021-02-12 04:08:48 -05:00
|
|
|
- if board.to_type == "EpicBoard"
|
|
|
|
- breadcrumb_title _("Epic Boards")
|
|
|
|
- else
|
|
|
|
- breadcrumb_title _("Issue Boards")
|
2019-08-27 22:39:39 -04:00
|
|
|
- page_title("#{board.name}", _("Boards"))
|
2020-09-30 05:10:11 -04:00
|
|
|
- add_page_specific_style 'page_bundles/boards'
|
2016-11-04 06:24:59 -04:00
|
|
|
|
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
|
2018-11-07 12:22:15 -05:00
|
|
|
%script#js-board-modal-filter{ type: "text/x-template" }= render "shared/issuable/search_bar", type: :boards_modal, show_sorting_dropdown: false
|
2016-11-04 06:24:59 -04:00
|
|
|
|
2020-10-21 02:09:17 -04:00
|
|
|
= render 'shared/issuable/search_bar', type: :boards, board: board
|
2019-04-16 10:41:25 -04:00
|
|
|
#board-app.boards-app.position-relative{ "v-cloak" => "true", data: board_data, ":class" => "{ 'is-compact': detailIssueVisible }" }
|
2020-11-26 13:09:18 -05:00
|
|
|
%board-content{ "v-cloak" => "true",
|
|
|
|
"ref" => "board_content",
|
|
|
|
":lists" => "state.lists",
|
|
|
|
":can-admin-list" => can_admin_list,
|
|
|
|
":disabled" => "disabled",
|
|
|
|
data: { qa_selector: "boards_list" } }
|
2018-02-19 14:06:16 -05:00
|
|
|
= render "shared/boards/components/sidebar", group: group
|
2020-10-14 14:08:47 -04:00
|
|
|
%board-settings-sidebar{ ":can-admin-list" => can_admin_list }
|
2017-09-22 07:01:37 -04:00
|
|
|
- if @project
|
|
|
|
%board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
|
|
|
|
"milestone-path" => milestones_filter_dropdown_path,
|
2018-10-03 06:36:35 -04:00
|
|
|
"label-path" => labels_filter_path_with_defaults,
|
2017-09-22 07:01:37 -04:00
|
|
|
"empty-state-svg" => image_path('illustrations/issues.svg'),
|
|
|
|
":project-id" => @project.id }
|