mirror of
https://github.com/fergalmoran/dss.git
synced 2026-02-15 20:44:01 +00:00
Humanised comments
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</a>
|
||||
<blockquote class="pull-right">
|
||||
<p><%= comment %></p>
|
||||
<small><%= date_created %></small>
|
||||
<small><%= humanise(date_created) %></small>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user