2014-02-09 03:19:48 +00:00
|
|
|
define(function (require) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var $ = require('jquery'),
|
|
|
|
_ = require('underscore'),
|
|
|
|
Backbone = require('backbone'),
|
|
|
|
Marionette = require('marionette'),
|
2014-04-04 08:20:13 +00:00
|
|
|
Mods = require('app/collections/mods'),
|
|
|
|
InfoView = require('app/views/servers/info'),
|
|
|
|
ModsListView = require('app/views/mods/list'),
|
2014-02-09 03:19:48 +00:00
|
|
|
tpl = require('text!tpl/servers/view.html');
|
|
|
|
|
2014-04-04 08:20:13 +00:00
|
|
|
return Marionette.Layout.extend({
|
2014-02-09 03:19:48 +00:00
|
|
|
template: _.template(tpl),
|
2014-04-04 08:20:13 +00:00
|
|
|
|
|
|
|
regions: {
|
|
|
|
info: "#info",
|
|
|
|
mods: "#mods",
|
|
|
|
settings: "#settings"
|
|
|
|
},
|
|
|
|
|
|
|
|
onRender: function() {
|
|
|
|
this.info.show(new InfoView({model: this.model}));
|
|
|
|
this.mods.show(new ModsListView({collection: new Mods(this.model.get('mods'))}));
|
|
|
|
},
|
2014-02-09 03:19:48 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|