diff --git a/static/js/app/views/comment/commentItemView.coffee b/static/js/app/views/comment/commentItemView.coffee index 96fabba..01bb4ca 100755 --- a/static/js/app/views/comment/commentItemView.coffee +++ b/static/js/app/views/comment/commentItemView.coffee @@ -1,6 +1,6 @@ -define ['marionette', 'text!/tpl/CommentItemView'], -(Marionette, Template) -> - class CommentItemView extends Marionette.ItemView +define ['app.lib/dssView', 'text!/tpl/CommentItemView'], +(DssView, Template) -> + class CommentItemView extends DssView template: _.template(Template) CommentItemView \ No newline at end of file diff --git a/static/js/app/views/comment/commentItemView.js b/static/js/app/views/comment/commentItemView.js index 75dda35..0318684 100755 --- a/static/js/app/views/comment/commentItemView.js +++ b/static/js/app/views/comment/commentItemView.js @@ -3,7 +3,7 @@ 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', 'text!/tpl/CommentItemView'], function(Marionette, Template) { + define(['app.lib/dssView', 'text!/tpl/CommentItemView'], function(DssView, Template) { var CommentItemView; CommentItemView = (function(_super) { @@ -17,7 +17,7 @@ return CommentItemView; - })(Marionette.ItemView); + })(DssView); return CommentItemView; }); diff --git a/templates/views/CommentItemView.html b/templates/views/CommentItemView.html index b7be4b5..6836636 100755 --- a/templates/views/CommentItemView.html +++ b/templates/views/CommentItemView.html @@ -11,7 +11,7 @@
<%= comment %>
- <%= date_created %> + <%= humanise(date_created) %>