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