summaryrefslogtreecommitdiff
path: root/app/views/projects/boards/components/_board_list.html.haml
blob: 4a0b2110601251eff04656f356184ac5c175c111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.board-list-component
  .board-list-loading.text-center{ "v-if" => "loading" }
    = icon("spinner spin")
  - if can? current_user, :create_issue, @project
    %board-new-issue{ ":list" => "list",
      "v-if" => 'list.type !== "closed" && showIssueForm' }
  %ul.board-list{ "ref" => "list",
    "v-show" => "!loading",
    ":data-board" => "list.id",
    ":class" => '{ "is-smaller": showIssueForm }' }
    %board-card{ "v-for" => "(issue, index) in issues",
      "ref" => "issue",
      ":index" => "index",
      ":list" => "list",
      ":issue" => "issue",
      ":issue-link-base" => "issueLinkBase",
      ":root-path" => "rootPath",
      ":disabled" => "disabled",
      ":key" => "issue.id" }
    %li.board-list-count.text-center{ "v-if" => "showCount",
      "data-issue-id" => "-1" }
      = icon("spinner spin", "v-show" => "list.loadingMore" )
      %span{ "v-if" => "list.issues.length === list.issuesSize" }
        Showing all issues
      %span{ "v-else" => true }
        Showing {{ list.issues.length }} of {{ list.issuesSize }} issues