mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
This feature is also sometime named the Pinterest-style route, which is further explained in this react-router example:
cf0419f70e/examples/pinterest
14 lines
332 B
JavaScript
14 lines
332 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() {
|
|
return ! Session.get('currentBoard');
|
|
}
|
|
});
|
|
|
|
Template.header.events({
|
|
'click .js-create-board': Popup.open('createBoard')
|
|
});
|