Files
dss/static/js/app/lib/dssView.js
2014-01-23 20:19:59 +00:00

38 lines
1.1 KiB
JavaScript

// Generated by CoffeeScript 1.4.0
(function() {
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
define(['marionette', 'utils'], function(Marionette, utils) {
var DssView;
DssView = (function(_super) {
__extends(DssView, _super);
function DssView() {
return DssView.__super__.constructor.apply(this, arguments);
}
DssView.prototype.templateHelpers = {
renderCheckbox: function(value) {
return (value ? "checked" : "");
},
isMe: function(id) {
return utils.isMe(id);
},
humanise: function(date) {
return moment(date).fromNow();
},
secondsToHms: function(d) {
return utils.secondsToHms(d);
}
};
return DssView;
})(Marionette.ItemView);
return DssView;
});
}).call(this);