Gitter migration: Point people to app.gitter.im (rollout pt. 1)
[gitter.git] / public / js / views / layouts / org-directory-layout.js
blob89589d149420b9ddc1283daf8817636e7ce6fb1a
1 'use strict';
3 var Marionette = require('backbone.marionette');
5 var HeaderView = require('../org-directory/org-directory-header-view');
7 require('../behaviors/isomorphic');
9 var OrgDirectoryLayout = Marionette.LayoutView.extend({
10   template: false,
11   el: 'body',
13   behaviors: {
14     Isomorphic: {
15       headerView: { el: '.org-page__header', init: 'initHeaderView' }
16     }
17   },
19   initHeaderView: function(optionsForRegion) {
20     this.headerView = new HeaderView(
21       optionsForRegion({
22         model: this.group
23       })
24     );
25     return this.headerView;
26   },
28   initialize: function(options) {
29     this.group = options.group;
30   }
31 });
33 module.exports = OrgDirectoryLayout;