summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYasar icli <hello@yasaricli.com>2015-07-18 13:33:15 +0300
committerYasar icli <hello@yasaricli.com>2015-07-18 13:33:15 +0300
commit2fb317d753cdf5612d9b90428c223deae683c97b (patch)
treea106f6fb481fca76f91d01be89413f9fe95b1f63
parentd7cb933925243d41d25314c34d34a21d8a701a6b (diff)
downloadwekan-2fb317d753cdf5612d9b90428c223deae683c97b.tar.gz
wekan-2fb317d753cdf5612d9b90428c223deae683c97b.tar.bz2
wekan-2fb317d753cdf5612d9b90428c223deae683c97b.zip
if not then the board list create board show button.
-rw-r--r--client/components/boards/boardList.jade7
-rw-r--r--client/components/boards/boardList.js3
-rw-r--r--client/components/boards/boardList.styl10
3 files changed, 16 insertions, 4 deletions
diff --git a/client/components/boards/boardList.jade b/client/components/boards/boardList.jade
index e133f73c..e92cad2d 100644
--- a/client/components/boards/boardList.jade
+++ b/client/components/boards/boardList.jade
@@ -6,7 +6,7 @@ template(name="boards")
+boardList
template(name="boardList")
- if boards
+ if boards.count
ul.board-list.clearfix
each boards
li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
@@ -17,5 +17,6 @@ template(name="boardList")
class="{{#if isStarred}}is-star-active{{/if}}"
title="{{_ 'star-board-title'}}")
else
- p.quiet {{_ 'no-boards'}}
- button.js-add-board {{_ 'add-board'}}
+ ul.board-list.clearfix
+ li.js-add-board
+ a.label {{_ 'add-board'}}
diff --git a/client/components/boards/boardList.js b/client/components/boards/boardList.js
index 8dc70ee9..9529af69 100644
--- a/client/components/boards/boardList.js
+++ b/client/components/boards/boardList.js
@@ -25,10 +25,11 @@ BlazeComponent.extendComponent({
events: function() {
return [{
+ 'click .js-add-board': Popup.open('createBoard'),
'click .js-star-board': function(evt) {
Meteor.user().toggleBoardStar(this._id);
evt.preventDefault();
- }
+ },
}];
}
}).register('boardList');
diff --git a/client/components/boards/boardList.styl b/client/components/boards/boardList.styl
index c4fa41be..8a750f43 100644
--- a/client/components/boards/boardList.styl
+++ b/client/components/boards/boardList.styl
@@ -37,6 +37,16 @@
font-weight: 400
line-height: 22px
+ .js-add-board
+ text-align:center
+
+ .label
+ font-weight: normal
+ line-height:90px
+
+ :hover
+ background-color:#939393
+
.fa-star-o
bottom: 0
font-size: 14px