mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
current progress
This commit is contained in:
parent
cf85c9c6cd
commit
ec9498fa62
7 changed files with 46 additions and 29 deletions
|
|
@ -12,7 +12,7 @@ template(name="listBody")
|
|||
.materialCheckBox.multi-selection-checkbox.js-toggle-multi-selection(
|
||||
class="{{#if MultiSelection.isSelected _id}}is-checked{{/if}}")
|
||||
+minicard(this)
|
||||
if currentUser.isBoardMember
|
||||
if canSeeAddCard
|
||||
+inlinedForm(autoclose=false position="bottom")
|
||||
+addCardForm(listId=_id position="bottom")
|
||||
else
|
||||
|
|
|
|||
|
|
@ -239,3 +239,10 @@ BlazeComponent.extendComponent({
|
|||
});
|
||||
},
|
||||
}).register('addCardForm');
|
||||
|
||||
|
||||
Template.listBody.helpers({
|
||||
canSeeAddCard() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ template(name="editListTitleForm")
|
|||
template(name="listActionPopup")
|
||||
ul.pop-over-list
|
||||
li: a.js-toggle-watch-list {{#if isWatching}}{{_ 'unwatch'}}{{else}}{{_ 'watch'}}{{/if}}
|
||||
hr
|
||||
unless currentUser.isCommentOnly
|
||||
hr
|
||||
ul.pop-over-list
|
||||
li: a.js-add-card {{_ 'add-card'}}
|
||||
if cards.count
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue