mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 02:10:12 +01:00
So now at Sandstorm when loading Wekan grain, if first Sandstorm board is found, it is opened. If first Sandstorm board is not found (it's deleted or archived), then redirect automatically to All Boards page. Closes #3132
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
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")
|
|
{{goHome}}
|
|
else
|
|
+spinner
|
|
|
|
template(name="boardBody")
|
|
.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 currentBoard.isTemplatesBoard
|
|
each currentBoard.swimlanes
|
|
+swimlane(this)
|
|
else if isViewSwimlanes
|
|
each currentBoard.swimlanes
|
|
+swimlane(this)
|
|
else if isViewLists
|
|
+listsGroup(currentBoard)
|
|
else if isViewCalendar
|
|
+calendarView
|
|
else
|
|
+listsGroup(currentBoard)
|
|
|
|
template(name="calendarView")
|
|
if isViewCalendar
|
|
.calendar-view.swimlane
|
|
if currentCard
|
|
+cardDetails(currentCard)
|
|
+fullcalendar(calendarOptions)
|