wekan/client/config/blazeHelpers.js
Maxime Quandalle dd95ecba98 Fix some dead links
This commit fixes the download link in the activity feed on the
sidebar and the mention link on card description and comments
(replaced by a popup).

`eslint .` now passes without any error or warning.

Fixes #286
2015-09-06 23:42:52 +02:00

15 lines
370 B
JavaScript

Blaze.registerHelper('currentBoard', () => {
const boardId = Session.get('currentBoard');
if (boardId) {
return Boards.findOne(boardId);
}
});
Blaze.registerHelper('currentCard', () => {
const cardId = Session.get('currentCard');
if (cardId) {
return Cards.findOne(cardId);
}
});
Blaze.registerHelper('getUser', (userId) => Users.findOne(userId));