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

63 lines
4.2 KiB
Text
Raw Normal View History

2019-07-31 22:56:46 +05:30
.board.d-inline-block.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" }',
2017-08-17 22:00:37 +05:30
":data-id" => "list.id" }
2019-07-31 22:56:46 +05:30
.board-inner.d-flex.flex-column.position-relative.h-100.rounded
%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) }", "@click" => "toggleExpanded($event)" }
%h3.board-title.m-0.d-flex.align-items-center.py-2.px-3.js-board-handle{ ":class" => '{ "user-can-drag": (!disabled && !list.preset), "p-0 border-bottom-0 justify-content-center": !list.isExpanded }' }
2017-09-10 17:25:29 +05:30
%i.fa.fa-fw.board-title-expandable-toggle{ "v-if": "list.isExpandable",
2018-05-09 12:01:36 +05:30
":class": "{ \"fa-caret-down\": list.isExpanded, \"fa-caret-right\": !list.isExpanded }",
2017-09-10 17:25:29 +05:30
"aria-hidden": "true" }
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" }
2018-11-18 11:00:15 +05:30
%span.board-title-text.has-tooltip.block-truncated{ "v-if": "list.type !== \"label\"",
2018-11-08 19:23:39 +05:30
":title" => '((list.label && list.label.description) || list.title || "")', data: { container: "body" } }
2016-09-13 17:45:13 +05:30
{{ list.title }}
2017-09-10 17:25:29 +05:30
2018-11-08 19:23:39 +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 }}
2017-09-10 17:25:29 +05:30
%span.has-tooltip{ "v-if": "list.type === \"label\"",
":title" => '(list.label ? list.label.description : "")',
data: { container: "body", placement: "bottom" },
2018-11-08 19:23:39 +05:30
class: "badge color-label title board-title-text",
2018-10-15 14:42:47 +05:30
":style" => "{ backgroundColor: (list.label && list.label.color ? list.label.color : null), color: (list.label && list.label.textColor ? list.label.textColor : \"#2e2e2e\") }" }
2017-09-10 17:25:29 +05:30
{{ list.title }}
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-07-31 22:56:46 +05:30
%button.board-delete.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")
2019-07-31 22:56:46 +05:30
.issue-count-badge.text-secondary{ "v-if" => 'list.type !== "blank" && list.type !== "promotion"', ":title": "counterTooltip", ":class": "{ 'd-none': !list.isExpanded }", "v-tooltip": true, data: { placement: "top" } }
2018-11-18 11:00:15 +05:30
%span.issue-count-badge-count
%icon.mr-1{ name: "issues" }
2017-08-17 22:00:37 +05:30
{{ list.issuesSize }}
2018-11-18 11:00:15 +05:30
= render_if_exists "shared/boards/components/list_weight"
2018-12-13 13:39:08 +05:30
%button.issue-count-badge-add-button.btn.btn-sm.btn-default.ml-1.has-tooltip.js-no-trigger-collapse{ type: "button",
"@click" => "showNewIssueForm",
"v-if" => "isNewIssueShown",
2019-07-31 22:56:46 +05:30
":class": "{ 'd-none': !list.isExpanded }",
2018-12-13 13:39:08 +05:30
"aria-label" => _("New issue"),
"title" => _("New issue"),
data: { placement: "top", container: "body" } }
= icon("plus", class: "js-no-trigger-collapse")
2018-11-18 11:00:15 +05:30
2018-11-08 19:23:39 +05:30
%board-list{ "v-if" => 'list.type !== "blank" && list.type !== "promotion"',
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'