arma-server-web-admin/public/js/app/views/servers/players.js
2019-10-18 11:06:47 +02:00

16 lines
353 B
JavaScript

var _ = require('underscore')
var Marionette = require('marionette')
var tpl = require('tpl/servers/players.html')
module.exports = Marionette.LayoutView.extend({
template: _.template(tpl),
templateHelpers: {
players: function () {
return _.sortBy(this.state.players, function (player) {
return player.name
})
}
}
})