mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
23 lines
564 B
JavaScript
23 lines
564 B
JavaScript
define(function (require) {
|
|
|
|
"use strict";
|
|
|
|
var $ = require('jquery'),
|
|
_ = require('underscore'),
|
|
Backbone = require('backbone'),
|
|
Marionette = require('marionette'),
|
|
tpl = require('text!tpl/servers/players.html');
|
|
|
|
return Marionette.Layout.extend({
|
|
template: _.template(tpl),
|
|
templateHelpers: {
|
|
players: function(){
|
|
return _.sortBy(this.state.players, function (player) {
|
|
return player.name;
|
|
});
|
|
}
|
|
},
|
|
});
|
|
|
|
});
|