mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
29 lines
866 B
JavaScript
29 lines
866 B
JavaScript
define(function (require) {
|
|
|
|
"use strict";
|
|
|
|
var $ = require('jquery'),
|
|
_ = require('underscore'),
|
|
Backbone = require('backbone'),
|
|
Marionette = require('marionette'),
|
|
Mods = require('app/collections/mods'),
|
|
InfoView = require('app/views/servers/info'),
|
|
ModsListView = require('app/views/mods/list'),
|
|
tpl = require('text!tpl/servers/view.html');
|
|
|
|
return Marionette.Layout.extend({
|
|
template: _.template(tpl),
|
|
|
|
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'))}));
|
|
},
|
|
});
|
|
|
|
}); |