summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.jade
blob: 6598dea9dfcb76caf72728d64610a621c5253c78 (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
27
28
29
30
31
32
33
34
35
36
37
38
template(name="board")
  if isBoardReady.get
    if currentBoard
      +boardBody
    else
      +message(label="board-no-found")
  else
    +spinner

template(name="boardBody")
  .board-wrapper(class=currentBoard.colorClass)
    .board-canvas(
      class=currentBoard.sidebarSize
      class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
      class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
      if showOverlay.get
        .board-overlay
      .lists.js-lists
        each currentBoard.lists
          +list(this)
          if currentCardIsInThisList
            +cardDetails(currentCard)
        if currentUser.isBoardMember
          +addListForm
    +sidebar

template(name="addListForm")
  .list.js-list.list-composer.js-list-composer
    +inlinedForm(autoclose=false)
      input.list-name-input(type="text" placeholder="{{_ 'add-list'}}"
        autocomplete="off" autofocus)
      .edit-controls.clearfix
        button.primary.confirm(type="submit") {{_ 'save'}}
        a.fa.fa-times-thin.js-close-inlined-form
    else
      a.js-open-inlined-form
        i.fa.fa-plus
        | {{_ 'add-list'}}