2020-04-22 19:07:51 +05:30
|
|
|
-# Please have a look at app/assets/javascripts/boards/components/board_column.vue
|
|
|
|
This haml file is deprecated and will be deleted soon, please change the Vue app
|
|
|
|
https://gitlab.com/gitlab-org/gitlab/-/issues/212300
|
2019-12-04 20:38:33 +05:30
|
|
|
.board.h-100.px-2.align-top.ws-normal{ ":class" => '{ "is-draggable": !list.preset, "is-expandable": list.isExpandable, "is-collapsed": !list.isExpanded, "board-type-assignee": list.type === "assignee" }',
|
|
|
|
":data-id" => "list.id", data: { qa_selector: "board_list" } }
|
2019-07-31 22:56:46 +05:30
|
|
|
.board-inner.d-flex.flex-column.position-relative.h-100.rounded
|
2019-12-04 20:38:33 +05:30
|
|
|
%header.board-header{ ":class" => '{ "has-border": list.label && list.label.color, "position-relative": list.isExpanded, "position-absolute position-top-0 position-left-0 w-100 h-100": !list.isExpanded }', ":style" => "{ borderTopColor: (list.label && list.label.color ? list.label.color : null) }", data: { qa_selector: "board_list_header" } }
|
2019-09-30 21:07:59 +05:30
|
|
|
%h3.board-title.m-0.d-flex.js-board-handle{ ":class" => '{ "user-can-drag": (!disabled && !list.preset), "border-bottom-0": !list.isExpanded }' }
|
|
|
|
|
|
|
|
.board-title-caret.no-drag{ "v-if": "list.isExpandable",
|
|
|
|
"aria-hidden": "true",
|
|
|
|
":aria-label": "caretTooltip",
|
|
|
|
":title": "caretTooltip",
|
|
|
|
"v-tooltip": "",
|
|
|
|
data: { placement: "bottom" },
|
|
|
|
"@click": "toggleExpanded" }
|
|
|
|
%i.fa.fa-fw{ ":class": '{ "fa-caret-right": list.isExpanded, "fa-caret-down": !list.isExpanded }' }
|
2018-11-18 11:00:15 +05:30
|
|
|
= render_if_exists "shared/boards/components/list_milestone"
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
%a.user-avatar-link.js-no-trigger{ "v-if": "list.type === \"assignee\"", ":href": "list.assignee.path" }
|
|
|
|
-# haml-lint:disable AltText
|
|
|
|
%img.avatar.s20.has-tooltip{ height: "20", width: "20", ":src": "list.assignee.avatar", ":alt": "list.assignee.name" }
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
.board-title-text
|
|
|
|
%span.board-title-main-text.block-truncated{ "v-if": "list.type !== \"label\"",
|
|
|
|
":title" => '((list.label && list.label.description) || list.title || "")',
|
|
|
|
data: { container: "body" },
|
2020-03-13 15:44:24 +05:30
|
|
|
":class": "{ 'has-tooltip': !['backlog', 'closed'].includes(list.type), 'd-block': list.type === 'milestone' }" }
|
2019-09-30 21:07:59 +05:30
|
|
|
{{ list.title }}
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
%span.board-title-sub-text.prepend-left-5.has-tooltip{ "v-if": "list.type === \"assignee\"",
|
|
|
|
":title" => '(list.assignee && list.assignee.username || "")' }
|
|
|
|
@{{ list.assignee.username }}
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
%gl-label{ "v-if" => " list.type === \"label\"",
|
|
|
|
":background-color" => "list.label.color",
|
|
|
|
":title" => "list.label.title",
|
|
|
|
":description" => "list.label.description",
|
|
|
|
"tooltipPlacement" => "bottom",
|
|
|
|
":size" => '(!list.isExpanded ? "sm" : "")',
|
2020-05-24 23:13:21 +05:30
|
|
|
":scoped" => "showScopedLabels(list.label)" }
|
2018-10-15 14:42:47 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- if can?(current_user, :admin_list, current_board_parent)
|
|
|
|
%board-delete{ "inline-template" => true,
|
|
|
|
":list" => "list",
|
|
|
|
"v-if" => "!list.preset && list.id" }
|
2019-09-30 21:07:59 +05:30
|
|
|
%button.board-delete.no-drag.p-0.border-0.has-tooltip.float-right{ type: "button", title: _("Delete list"), ":class": "{ 'd-none': !list.isExpanded }", "aria-label" => _("Delete list"), data: { placement: "bottom" }, "@click.stop" => "deleteBoard" }
|
2018-03-17 18:26:18 +05:30
|
|
|
= icon("trash")
|
2018-11-18 11:00:15 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
.issue-count-badge.pr-0.no-drag.text-secondary{ "v-if" => "showBoardListAndBoardInfo" }
|
2019-09-30 21:07:59 +05:30
|
|
|
%span.d-inline-flex
|
2020-03-13 15:44:24 +05:30
|
|
|
%gl-tooltip{ ":target" => "() => $refs.issueCount", ":title" => "issuesTooltip" }
|
|
|
|
%span.issue-count-badge-count{ "ref" => "issueCount" }
|
2019-09-30 21:07:59 +05:30
|
|
|
%icon.mr-1{ name: "issues" }
|
2020-01-01 13:55:28 +05:30
|
|
|
%issue-count{ ":maxIssueCount" => "list.maxIssueCount",
|
|
|
|
":issuesSize" => "list.issuesSize" }
|
2019-09-30 21:07:59 +05:30
|
|
|
= render_if_exists "shared/boards/components/list_weight"
|
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
%gl-button-group.board-list-button-group.pl-2{ "v-if" => "isNewIssueShown || isSettingsShown" }
|
2020-04-22 19:07:51 +05:30
|
|
|
%gl-deprecated-button.issue-count-badge-add-button.no-drag{ type: "button",
|
2020-01-01 13:55:28 +05:30
|
|
|
"@click" => "showNewIssueForm",
|
|
|
|
"v-if" => "isNewIssueShown",
|
|
|
|
":class": "{ 'd-none': !list.isExpanded, 'rounded-right': isNewIssueShown && !isSettingsShown }",
|
|
|
|
"aria-label" => _("New issue"),
|
|
|
|
"ref" => "newIssueBtn" }
|
|
|
|
= icon("plus")
|
|
|
|
%gl-tooltip{ ":target" => "() => $refs.newIssueBtn" }
|
|
|
|
= _("New Issue")
|
|
|
|
= render_if_exists 'shared/boards/components/list_settings'
|
2018-11-18 11:00:15 +05:30
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
%board-list{ "v-if" => "showBoardListAndBoardInfo",
|
2017-08-17 22:00:37 +05:30
|
|
|
":list" => "list",
|
|
|
|
":issues" => "list.issues",
|
|
|
|
":loading" => "list.loading",
|
|
|
|
":disabled" => "disabled",
|
|
|
|
":issue-link-base" => "issueLinkBase",
|
|
|
|
":root-path" => "rootPath",
|
2018-03-27 19:54:05 +05:30
|
|
|
":groupId" => ((current_board_parent.id if @group) || 'null'),
|
2017-08-17 22:00:37 +05:30
|
|
|
"ref" => "board-list" }
|
2018-03-17 18:26:18 +05:30
|
|
|
- if can?(current_user, :admin_list, current_board_parent)
|
2017-08-17 22:00:37 +05:30
|
|
|
%board-blank-state{ "v-if" => 'list.id == "blank"' }
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'shared/boards/board_promotion_state'
|