summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.jade
blob: 4631f999bfbcd1af1debe2a91795f5a68420c744 (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
template(name="board")
  if isBoardReady.get
    if currentBoard
      if onlyShowCurrentCard
        +cardDetails(currentCard)
      else
        +boardBody
    else
      //- XXX We need a better error message in case the board has been archived
      +message(label="board-not-found")
  else
    +spinner

template(name="boardBody")
  | {{currentSetting.customHTMLafterBodyStart}}
  .board-wrapper(class=currentBoard.colorClass)
    +sidebar
    .board-canvas.js-swimlanes.js-perfect-scrollbar(
      class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
      class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
      class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
      if showOverlay.get
        .board-overlay
      if isViewSwimlanes
        each currentBoard.swimlanes
          +swimlane(this)
      if isViewLists
        +listsGroup
      if isViewCalendar
        +calendarView
  | {{currentSetting.customHTMLbeforeBodyEnd}}

template(name="calendarView")
  .calendar-view.swimlane
    if currentCard
      +cardDetails(currentCard)
    +fullcalendar(calendarOptions)