mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
16 lines
353 B
JavaScript
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
|
|
})
|
|
}
|
|
}
|
|
})
|