Humanised comments

This commit is contained in:
Fergal Moran
2013-12-17 20:03:02 +00:00
parent 27c659fffa
commit 26bd6b0e5c
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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;
});

View File

@@ -11,7 +11,7 @@
</a>
<blockquote class="pull-right">
<p><%= comment %></p>
<small><%= date_created %></small>
<small><%= humanise(date_created) %></small>
</blockquote>
</div>
</div>