_board.html.haml 1.6 KB
Newer Older
1
%board{ "inline-template" => true, "v-cloak" => true, "v-for" => "board in state.lists | orderBy 'position'", ":board" => "board" }
2
  .board{ ":class" => "{ 'is-draggable': !isPreset }" }
3
    .board-inner
4
      %header.board-inner-container.board-header{ ":class" => "{ 'has-border': board.label }", ":style" => "{ borderTopColor: board.label.color }" }
5 6 7 8
        %h3.board-title
          {{ board.title }}
          %span.pull-right
            {{ board.issues.length }}
P
Phil Hughes 已提交
9
          %board-delete{ "inline-template" => true, "v-if" => "!isPreset", ":board-id" => "board.id" }
P
Phil Hughes 已提交
10
            %button.board-delete.has-tooltip.pull-right{ type: "button", title: "Delete board", "aria-label" => "Delete board", data: { placement: "bottom" }, "@click" => "deleteBoard" }
11
              = icon("trash")
12
      .board-inner-container.board-search-container{ "v-if" => "board.canSearch()" }
13 14
        %input.form-control{ type: "text", placeholder: "Search issues", "v-model" => "query" }
        = icon("search", class: "board-search-icon", "v-show" => "!query")
P
Phil Hughes 已提交
15
        %button.board-search-clear-btn{ type: "button", role: "button", "aria-label" => "Clear search", "@click" => "clearSearch", "v-show" => "query" }
16
          = icon("times", class: "board-search-clear")
P
Phil Hughes 已提交
17
      %board-list{ "inline-template" => true, "v-if" => "board.id != 'blank'", ":board-id" => "board.id", ":issues" => "board.issues", ":disabled" => "#{current_user.nil?}", ":query" => "query", ":filters" => "filters" }
18
        %ul.board-list{ "v-el:list" => true, ":data-board" => "boardId" }
19
          = render "projects/boards/components/card"
P
Phil Hughes 已提交
20
      = render "projects/boards/components/blank_state"