mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
if not then the board list create board show button.
This commit is contained in:
parent
d7cb933925
commit
2fb317d753
3 changed files with 16 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ template(name="boards")
|
||||||
+boardList
|
+boardList
|
||||||
|
|
||||||
template(name="boardList")
|
template(name="boardList")
|
||||||
if boards
|
if boards.count
|
||||||
ul.board-list.clearfix
|
ul.board-list.clearfix
|
||||||
each boards
|
each boards
|
||||||
li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
|
li(class="{{#if isStarred}}starred{{/if}}" class=colorClass)
|
||||||
|
|
@ -17,5 +17,6 @@ template(name="boardList")
|
||||||
class="{{#if isStarred}}is-star-active{{/if}}"
|
class="{{#if isStarred}}is-star-active{{/if}}"
|
||||||
title="{{_ 'star-board-title'}}")
|
title="{{_ 'star-board-title'}}")
|
||||||
else
|
else
|
||||||
p.quiet {{_ 'no-boards'}}
|
ul.board-list.clearfix
|
||||||
button.js-add-board {{_ 'add-board'}}
|
li.js-add-board
|
||||||
|
a.label {{_ 'add-board'}}
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,11 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
events: function() {
|
events: function() {
|
||||||
return [{
|
return [{
|
||||||
|
'click .js-add-board': Popup.open('createBoard'),
|
||||||
'click .js-star-board': function(evt) {
|
'click .js-star-board': function(evt) {
|
||||||
Meteor.user().toggleBoardStar(this._id);
|
Meteor.user().toggleBoardStar(this._id);
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
},
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
}).register('boardList');
|
}).register('boardList');
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,16 @@
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
line-height: 22px
|
line-height: 22px
|
||||||
|
|
||||||
|
.js-add-board
|
||||||
|
text-align:center
|
||||||
|
|
||||||
|
.label
|
||||||
|
font-weight: normal
|
||||||
|
line-height:90px
|
||||||
|
|
||||||
|
:hover
|
||||||
|
background-color:#939393
|
||||||
|
|
||||||
.fa-star-o
|
.fa-star-o
|
||||||
bottom: 0
|
bottom: 0
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue