mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00

The UI and the internal APIs are still rough around the edges but the feature is basically working. You can now select multiple cards and move them together or (un|)assign them a label.
37 lines
947 B
JavaScript
37 lines
947 B
JavaScript
// Template.addMemberPopup.helpers({
|
|
// isBoardMember: function() {
|
|
// var user = Users.findOne(this._id);
|
|
// return user && user.isBoardMember();
|
|
// }
|
|
// });
|
|
|
|
Template.memberPopup.helpers({
|
|
user: function() {
|
|
return Users.findOne(this.userId);
|
|
},
|
|
memberType: function() {
|
|
var type = Users.findOne(this.userId).isBoardAdmin() ? 'admin' : 'normal';
|
|
return TAPi18n.__(type).toLowerCase();
|
|
}
|
|
});
|
|
|
|
// Template.removeMemberPopup.helpers({
|
|
// user: function() {
|
|
// return Users.findOne(this.userId)
|
|
// },
|
|
// board: function() {
|
|
// return currentBoard();
|
|
// }
|
|
// });
|
|
|
|
// Template.changePermissionsPopup.helpers({
|
|
// isAdmin: function() {
|
|
// return this.user.isBoardAdmin();
|
|
// },
|
|
// isLastAdmin: function() {
|
|
// if (! this.user.isBoardAdmin())
|
|
// return false;
|
|
// var nbAdmins = _.where(currentBoard().members, { isAdmin: true }).length;
|
|
// return nbAdmins === 1;
|
|
// }
|
|
// });
|