mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 02:40:14 +01:00
16 lines
448 B
JavaScript
16 lines
448 B
JavaScript
Template.header.helpers({
|
|
// Reactively set the color of the page from the color of the current board.
|
|
headerTemplate: function() {
|
|
return 'headerBoard';
|
|
},
|
|
|
|
wrappedHeader: function() {
|
|
var unwrapedRoutes = ['board', 'card'];
|
|
var currentRouteName = FlowRouter.getRouteName();
|
|
return unwrapedRoutes.indexOf(currentRouteName) === -1;
|
|
}
|
|
});
|
|
|
|
Template.header.events({
|
|
'click .js-create-board': Popup.open('createBoard')
|
|
});
|