debian-mirror-gitlab/app/views/shared/boards/_show.html.haml

36 lines
1.6 KiB
Text
Raw Normal View History

2018-03-27 19:54:05 +05:30
- board = local_assigns.fetch(:board, nil)
- group = local_assigns.fetch(:group, false)
2020-04-22 19:07:51 +05:30
-# TODO: Move group_id and can_admin_list to the board store
See: https://gitlab.com/gitlab-org/gitlab/-/issues/213082
2021-04-17 20:07:23 +05:30
- can_admin_list = can?(current_user, :admin_issue_board_list, current_board_parent) == true
2018-03-17 18:26:18 +05:30
- @no_breadcrumb_container = true
2017-08-17 22:00:37 +05:30
- @no_container = true
2018-11-08 19:23:39 +05:30
- @content_class = "issue-boards-content js-focus-mode-board"
2021-03-11 19:13:27 +05:30
- if board.to_type == "EpicBoard"
- breadcrumb_title _("Epic Boards")
- else
- breadcrumb_title _("Issue Boards")
2019-12-04 20:38:33 +05:30
- page_title("#{board.name}", _("Boards"))
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/boards'
2017-08-17 22:00:37 +05:30
- content_for :page_specific_javascripts do
2018-12-13 13:39:08 +05:30
%script#js-board-modal-filter{ type: "text/x-template" }= render "shared/issuable/search_bar", type: :boards_modal, show_sorting_dropdown: false
2017-08-17 22:00:37 +05:30
2021-01-29 00:20:46 +05:30
= render 'shared/issuable/search_bar', type: :boards, board: board
2019-07-31 22:56:46 +05:30
#board-app.boards-app.position-relative{ "v-cloak" => "true", data: board_data, ":class" => "{ 'is-compact': detailIssueVisible }" }
2021-02-22 17:27:13 +05:30
%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-03-27 19:54:05 +05:30
= render "shared/boards/components/sidebar", group: group
2021-01-03 14:25:43 +05:30
%board-settings-sidebar{ ":can-admin-list" => can_admin_list }
2018-03-17 18:26:18 +05:30
- if @project
%board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
"milestone-path" => milestones_filter_dropdown_path,
2018-12-05 23:21:45 +05:30
"label-path" => labels_filter_path_with_defaults,
2018-03-17 18:26:18 +05:30
"empty-state-svg" => image_path('illustrations/issues.svg'),
":project-id" => @project.id }