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

47 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
- group_id = @group&.id || "null"
- 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"))
2017-08-17 22:00:37 +05:30
- content_for :page_specific_javascripts do
2018-03-27 19:54:05 +05:30
-# haml-lint:disable InlineJavaScript
2018-03-17 18:26:18 +05:30
%script#js-board-template{ type: "text/x-template" }= render "shared/boards/components/board"
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
2019-12-04 20:38:33 +05:30
.boards-list.w-100.py-3.px-2.text-nowrap{ data: { qa_selector: "boards_list" } }
2019-07-31 22:56:46 +05:30
.boards-app-loading.w-100.text-center{ "v-if" => "loading" }
= icon("spinner spin 2x")
%board{ "v-cloak" => "true",
2017-08-17 22:00:37 +05:30
"v-for" => "list in state.lists",
"ref" => "board",
2020-04-22 19:07:51 +05:30
":can-admin-list" => can_admin_list,
":group-id" => group_id,
2017-08-17 22:00:37 +05:30
":list" => "list",
":disabled" => "disabled",
":issue-link-base" => "issueLinkBase",
":root-path" => "rootPath",
2017-09-10 17:25:29 +05:30
":board-id" => "boardId",
2018-05-09 12:01:36 +05:30
":key" => "list.id" }
2018-03-27 19:54:05 +05:30
= render "shared/boards/components/sidebar", group: group
2020-01-01 13:55:28 +05:30
= render_if_exists 'shared/boards/components/board_settings_sidebar'
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'),
":issue-link-base" => "issueLinkBase",
":root-path" => "rootPath",
":project-id" => @project.id }