summaryrefslogtreecommitdiffstats
path: root/client/components/boards
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-02-25 22:48:25 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-02-25 22:48:32 +0100
commitdc7286a0ef8111c0855129911492588ba8a384df (patch)
treedcc4f9be071a1bf55d1f2638ed63c958e0a42634 /client/components/boards
parent13c2157e36f65be4138a85fae0379e0fe31f02bd (diff)
downloadwekan-dc7286a0ef8111c0855129911492588ba8a384df.tar.gz
wekan-dc7286a0ef8111c0855129911492588ba8a384df.tar.bz2
wekan-dc7286a0ef8111c0855129911492588ba8a384df.zip
Fix list view issues. Allow creation of boards from templates
Diffstat (limited to 'client/components/boards')
-rw-r--r--client/components/boards/boardBody.jade2
-rw-r--r--client/components/boards/boardHeader.jade5
-rw-r--r--client/components/boards/boardHeader.js1
-rw-r--r--client/components/boards/miniboard.jade8
4 files changed, 14 insertions, 2 deletions
diff --git a/client/components/boards/boardBody.jade b/client/components/boards/boardBody.jade
index e36058f6..32f8629f 100644
--- a/client/components/boards/boardBody.jade
+++ b/client/components/boards/boardBody.jade
@@ -27,7 +27,7 @@ template(name="boardBody")
each currentBoard.swimlanes
+swimlane(this)
else if isViewLists
- +listsGroup
+ +listsGroup(currentBoard)
else if isViewCalendar
+calendarView
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade
index 4c9d6e43..1f6462bd 100644
--- a/client/components/boards/boardHeader.jade
+++ b/client/components/boards/boardHeader.jade
@@ -277,7 +277,10 @@ template(name="createBoard")
input.primary.wide(type="submit" value="{{_ 'create'}}")
span.quiet
| {{_ 'or'}}
- a.js-import-board {{_ 'import-board'}}
+ a.js-import-board {{_ 'import'}}
+ span.quiet
+ | /
+ a.js-board-template {{_ 'template'}}
template(name="chooseBoardSource")
ul.pop-over-list
diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js
index 89f686ab..492fda40 100644
--- a/client/components/boards/boardHeader.js
+++ b/client/components/boards/boardHeader.js
@@ -304,6 +304,7 @@ const CreateBoard = BlazeComponent.extendComponent({
'click .js-import': Popup.open('boardImportBoard'),
submit: this.onSubmit,
'click .js-import-board': Popup.open('chooseBoardSource'),
+ 'click .js-board-template': Popup.open('searchElement'),
}];
},
}).register('createBoardPopup');
diff --git a/client/components/boards/miniboard.jade b/client/components/boards/miniboard.jade
new file mode 100644
index 00000000..d1fb0b07
--- /dev/null
+++ b/client/components/boards/miniboard.jade
@@ -0,0 +1,8 @@
+template(name="miniboard")
+ .minicard(
+ class="minicard-{{colorClass}}")
+ .minicard-title
+ .handle
+ .fa.fa-arrows
+ +viewer
+ = title