boardBody.jade 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. template(name="board")
  2. if isMigrating.get
  3. +migrationProgress
  4. else if isConverting.get
  5. +boardConversionProgress
  6. else if isBoardReady.get
  7. if currentBoard
  8. if onlyShowCurrentCard
  9. +cardDetails(currentCard)
  10. else
  11. +boardBody
  12. else
  13. //-- XXX We need a better error message in case the board has been archived
  14. +message(label="board-not-found")
  15. //-- | {{goHome}}
  16. else
  17. +spinner
  18. template(name="boardBody")
  19. if notDisplayThisBoard
  20. | {{_ 'tableVisibilityMode-allowPrivateOnly'}}
  21. else
  22. // Debug information (remove in production)
  23. if debugBoardState
  24. .debug-info(style="position: fixed; top: 0; left: 0; background: rgba(0,0,0,0.8); color: white; padding: 10px; z-index: 9999; font-size: 12px;")
  25. | Board: {{currentBoard.title}} | View: {{boardView}} | HasSwimlanes: {{hasSwimlanes}} | Swimlanes: {{currentBoard.swimlanes.length}}
  26. .board-wrapper(class=currentBoard.colorClass class="{{#if isMiniScreen}}mobile-view{{/if}}")
  27. .board-canvas.js-swimlanes(
  28. class="{{#if hasSwimlanes}}dragscroll{{/if}}"
  29. class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
  30. class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
  31. class="{{#if draggingActive.get}}is-dragging-active{{/if}}"
  32. class="{{#unless isVerticalScrollbars}}no-scrollbars{{/unless}}"
  33. class="{{#if isMiniScreen}}mobile-view{{/if}}")
  34. if showOverlay.get
  35. .board-overlay
  36. if currentBoard.isTemplatesBoard
  37. each currentBoard.swimlanes
  38. +swimlane(this)
  39. else if isViewSwimlanes
  40. if hasSwimlanes
  41. each currentBoard.swimlanes
  42. +swimlane(this)
  43. else
  44. // Fallback: If no swimlanes exist, show lists instead of empty message
  45. +listsGroup(currentBoard)
  46. else if isViewLists
  47. +listsGroup(currentBoard)
  48. else if isViewCalendar
  49. +calendarView
  50. else
  51. // Default view - show swimlanes if they exist, otherwise show lists
  52. if hasSwimlanes
  53. each currentBoard.swimlanes
  54. +swimlane(this)
  55. else
  56. +listsGroup(currentBoard)
  57. +sidebar
  58. template(name="calendarView")
  59. if isViewCalendar
  60. .calendar-view.swimlane
  61. if currentCard
  62. +cardDetails(currentCard)
  63. +fullcalendar(calendarOptions)