Files
dss/static/js/app/lib/dssView.js
2013-09-25 23:18:09 +01:00

36 lines
1.0 KiB
JavaScript

// Generated by CoffeeScript 1.6.2
(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, _ref;
DssView = (function(_super) {
__extends(DssView, _super);
function DssView() {
_ref = DssView.__super__.constructor.apply(this, arguments);
return _ref;
}
DssView.prototype.templateHelpers = {
renderCheckbox: function(value) {
return (value ? "checked" : "");
},
isMe: function(id) {
return utils.isMe(id);
},
humanise: function(date) {
return moment(date).fromNow();
}
};
return DssView;
})(Marionette.ItemView);
return DssView;
});
}).call(this);