mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-28 04:28:01 +00:00
36 lines
1.0 KiB
JavaScript
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);
|