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

46 lines
2.2 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
- can_admin_list = can?(current_user, :admin_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"
- 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
2018-11-08 19:23:39 +05:30
%script#js-board-promotion{ type: "text/x-template" }= render_if_exists "shared/promotions/promote_issue_board"
2017-08-17 22:00:37 +05:30
2019-07-31 22:56:46 +05:30
#board-app.boards-app.position-relative{ "v-cloak" => "true", data: board_data, ":class" => "{ 'is-compact': detailIssueVisible }" }
2019-09-30 21:07:59 +05:30
= render 'shared/issuable/search_bar', type: :boards, board: board
2017-08-17 22:00:37 +05:30
2020-11-24 15:15:51 +05:30
- if Feature.enabled?(:boards_with_swimlanes, current_board_parent) || Feature.enabled?(:graphql_board_lists, current_board_parent)
2020-06-23 00:09:42 +05:30
%board-content{ "v-cloak" => "true",
"ref" => "board_content",
":lists" => "state.lists",
2020-04-22 19:07:51 +05:30
":can-admin-list" => can_admin_list,
2020-11-24 15:15:51 +05:30
":disabled" => "disabled" }
2020-06-23 00:09:42 +05:30
- else
.boards-list.w-100.py-3.px-2.text-nowrap{ data: { qa_selector: "boards_list" } }
.boards-app-loading.w-100.text-center{ "v-if" => "loading" }
2020-10-24 23:57:45 +05:30
= loading_icon(css_class: 'gl-mb-3')
2020-06-23 00:09:42 +05:30
%board{ "v-cloak" => "true",
"v-for" => "list in state.lists",
"ref" => "board",
":can-admin-list" => can_admin_list,
":list" => "list",
":disabled" => "disabled",
":key" => "list.id" }
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 }