summaryrefslogtreecommitdiffstats
path: root/client/components/main/header.js
blob: 7b7e431f11d2870e0c027577a921fd81b53c98f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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')
});