summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2015-12-07 11:22:30 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2015-12-07 11:22:30 +0800
commit21fa6fdc327757c29364a0e59fa37d8b279411df (patch)
tree7e62450e80983ac94aed74bf70c1a449b7b4b1f7 /client
parent011f53ad0828c0979d15e232abf501180c741288 (diff)
downloadwekan-21fa6fdc327757c29364a0e59fa37d8b279411df.tar.gz
wekan-21fa6fdc327757c29364a0e59fa37d8b279411df.tar.bz2
wekan-21fa6fdc327757c29364a0e59fa37d8b279411df.zip
add: optional board description
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardHeader.jade3
-rw-r--r--client/components/boards/boardHeader.js2
-rw-r--r--client/components/boards/boardsList.jade1
3 files changed, 6 insertions, 0 deletions
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade
index cb86e9bb..a0160382 100644
--- a/client/components/boards/boardHeader.jade
+++ b/client/components/boards/boardHeader.jade
@@ -117,6 +117,9 @@ template(name="boardChangeTitlePopup")
label
| {{_ 'title'}}
input.js-board-name(type="text" value=title autofocus)
+ label
+ | {{_ 'description'}}
+ textarea.js-board-desc= description
input.primary.wide(type="submit" value="{{_ 'rename'}}")
template(name="archiveBoardPopup")
diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js
index 92d5f6d4..3dc6d754 100644
--- a/client/components/boards/boardHeader.js
+++ b/client/components/boards/boardHeader.js
@@ -18,8 +18,10 @@ Template.boardMenuPopup.events({
Template.boardChangeTitlePopup.events({
submit(evt, tpl) {
const newTitle = tpl.$('.js-board-name').val().trim();
+ const newDesc = tpl.$('.js-board-desc').val().trim();
if (newTitle) {
this.rename(newTitle);
+ this.setDesciption(newDesc);
Popup.close();
}
evt.preventDefault();
diff --git a/client/components/boards/boardsList.jade b/client/components/boards/boardsList.jade
index 464f9b97..7099cdc9 100644
--- a/client/components/boards/boardsList.jade
+++ b/client/components/boards/boardsList.jade
@@ -20,5 +20,6 @@ template(name="boardList")
i.fa.js-star-board(
class="fa-star{{#if isStarred}} is-star-active{{else}}-o{{/if}}"
title="{{_ 'star-board-title'}}")
+ p.board-list-item-desc= description
li.js-add-board
a.board-list-item.label {{_ 'add-board'}}