2017-09-10 17:25:29 +05:30
|
|
|
.board{ ":class" => '{ "is-draggable": !list.preset, "is-expandable": list.isExpandable, "is-collapsed": !list.isExpanded }',
|
2017-08-17 22:00:37 +05:30
|
|
|
":data-id" => "list.id" }
|
|
|
|
.board-inner
|
2017-09-10 17:25:29 +05:30
|
|
|
%header.board-header{ ":class" => '{ "has-border": list.label && list.label.color }', ":style" => "{ borderTopColor: (list.label && list.label.color ? list.label.color : null) }", "@click" => "toggleExpanded($event)" }
|
2017-08-17 22:00:37 +05:30
|
|
|
%h3.board-title.js-board-handle{ ":class" => '{ "user-can-drag": (!disabled && !list.preset) }' }
|
2017-09-10 17:25:29 +05:30
|
|
|
%i.fa.fa-fw.board-title-expandable-toggle{ "v-if": "list.isExpandable",
|
|
|
|
":class": "{ \"fa-caret-down\": list.isExpanded, \"fa-caret-right\": !list.isExpanded && list.position === -1, \"fa-caret-left\": !list.isExpanded && list.position !== -1 }",
|
|
|
|
"aria-hidden": "true" }
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%span.board-title-text.has-tooltip{ "v-if": "list.type !== \"label\"",
|
|
|
|
":title" => '(list.label ? list.label.description : "")', data: { container: "body" } }
|
2016-09-13 17:45:13 +05:30
|
|
|
{{ list.title }}
|
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-03-17 18:26:18 +05:30
|
|
|
class: "label color-label title board-title-text",
|
2017-09-10 17:25:29 +05:30
|
|
|
":style" => "{ backgroundColor: (list.label && list.label.color ? list.label.color : null), color: (list.label && list.label.color ? list.label.text_color : \"#2e2e2e\") }" }
|
|
|
|
{{ list.title }}
|
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" }
|
|
|
|
%button.board-delete.has-tooltip.pull-right{ type: "button", title: "Delete list", "aria-label" => "Delete list", data: { placement: "bottom" }, "@click.stop" => "deleteBoard" }
|
|
|
|
= icon("trash")
|
|
|
|
.issue-count-badge.clearfix{ "v-if" => 'list.type !== "blank"' }
|
2017-09-10 17:25:29 +05:30
|
|
|
%span.issue-count-badge-count.pull-left{ ":class" => '{ "has-btn": list.type !== "closed" && !disabled }' }
|
2017-08-17 22:00:37 +05:30
|
|
|
{{ list.issuesSize }}
|
2018-03-17 18:26:18 +05:30
|
|
|
- if can?(current_user, :admin_list, current_board_parent)
|
|
|
|
%button.issue-count-badge-add-button.btn.btn-sm.btn-default.has-tooltip.js-no-trigger-collapse{ type: "button",
|
2017-08-17 22:00:37 +05:30
|
|
|
"@click" => "showNewIssueForm",
|
|
|
|
"v-if" => 'list.type !== "closed"',
|
|
|
|
"aria-label" => "New issue",
|
|
|
|
"title" => "New issue",
|
|
|
|
data: { placement: "top", container: "body" } }
|
2017-09-10 17:25:29 +05:30
|
|
|
= icon("plus", class: "js-no-trigger-collapse")
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
%board-list{ "v-if" => 'list.type !== "blank"',
|
|
|
|
":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"' }
|