Skip to content

Commit

Permalink
make configurable which templates are used for kanban-columns and kan…
Browse files Browse the repository at this point in the history
…ban-items
  • Loading branch information
BurningTreeC committed Sep 6, 2021
1 parent 5941a3f commit 4f97796
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions BTC/Muuri-Kanban/config/ui/column-edittemplate-config.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/config/muuri/kanban/ColumnEditTemplate

$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnEditTemplate
3 changes: 3 additions & 0 deletions BTC/Muuri-Kanban/config/ui/column-template-config.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/config/muuri/kanban/ColumnTemplate

$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnTemplate
3 changes: 3 additions & 0 deletions BTC/Muuri-Kanban/config/ui/item-edittemplate-config.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/config/muuri/kanban/ItemEditTemplate

$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemEditTemplate
3 changes: 3 additions & 0 deletions BTC/Muuri-Kanban/config/ui/item-template-config.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/config/muuri/kanban/ItemTemplate

$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemTemplate
2 changes: 1 addition & 1 deletion BTC/Muuri-Kanban/ui/Kanban/KanbanColumnEditTemplate.tid
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ title: $:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnEditTemplate
<$set name="tv-muuri-story-list" value=<<currentTiddler>>>
<$set name="tv-muuri-drop-actions" value={{!!drop-actions}}>
<div class="tc-board-column-items">
<$list filter="[list<currentTiddler>]" storyview="muuri" template="$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemTemplate" editTemplate="$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemEditTemplate" storyViewConfig="$:/config/kanban/items/"/>
<$list filter="[list<currentTiddler>]" storyview="muuri" template={{$:/config/muuri/kanban/ItemTemplate}} editTemplate={{$:/config/muuri/kanban/ItemEditTemplate}} storyViewConfig="$:/config/kanban/items/"/>
</div>
</$set>
</$set>
Expand Down
2 changes: 1 addition & 1 deletion BTC/Muuri-Kanban/ui/Kanban/KanbanColumnTemplate.tid
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ title: $:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnTemplate
<$set name="dropActions" value={{!!drop-actions}}>
<$set name="tv-muuri-drop-actions" value=<<get-drop-actions>>>
<div class="tc-board-column-items">
<$list filter="[list<currentTiddler>]" storyview="muuri" template="$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemTemplate" editTemplate="$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemEditTemplate" storyViewConfig="$:/config/kanban/items/"/>
<$list filter="[list<currentTiddler>]" storyview="muuri" template={{$:/config/muuri/kanban/ItemTemplate}} editTemplate={{$:/config/muuri/kanban/ItemEditTemplate}} storyViewConfig="$:/config/kanban/items/"/>
</div>
</$set>
</$set>
Expand Down
2 changes: 1 addition & 1 deletion BTC/Muuri-Kanban/ui/Kanban/KanbanTemplate.tid
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: $:/plugins/BTC/Muuri-Kanban/ui/KanbanTemplate
<div class="tc-board-container tc-scrollable-element" data-board-container-title=<<currentTiddler>>>
<div class="tc-board">
<$vars tv-muuri-story-list=<<currentTiddler>> tv-muuri-history-list=<<get-history-list>>>
<$list filter="[list<currentTiddler>]" storyview="muuri" template="$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnTemplate" editTemplate="$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnEditTemplate" storyViewConfig="$:/config/kanban/"/>
<$list filter="[list<currentTiddler>]" storyview="muuri" template={{$:/config/muuri/kanban/ColumnTemplate}} editTemplate={{$:/config/muuri/kanban/ColumnEditTemplate}} storyViewConfig="$:/config/kanban/"/>
</$vars>
</div>
</div>
Expand Down

0 comments on commit 4f97796

Please sign in to comment.