3 var context = require('gitter-web-client-context');
4 var ChatLayout = require('./chat');
5 var HeaderView = require('../app/headerView');
6 var ArchiveNavigationView = require('../archive/archive-navigation-view');
8 require('../behaviors/isomorphic');
10 module.exports = ChatLayout.extend({
14 el: '#content-wrapper',
15 init: 'initChatRegion' // Declared in super
18 el: '#archive-navigation',
19 init: 'initArchiveNavigation'
22 el: '#header-wrapper',
23 init: 'initHeaderRegion'
28 initArchiveNavigation: function(optionsForRegion) {
29 return new ArchiveNavigationView(
31 archiveContext: context().archive
36 initHeaderRegion: function(optionsForRegion) {
37 return new HeaderView(
39 model: context.troupe()