mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-06 08:54:12 +00:00
10 lines
311 B
CoffeeScript
Executable File
10 lines
311 B
CoffeeScript
Executable File
define ['backbone', 'moment'], \
|
|
(Backbone, moment) ->
|
|
class ActivityItem extends Backbone.Model
|
|
urlRoot: com.podnoms.settings.urlRoot + "activity/"
|
|
|
|
parse: (model) ->
|
|
model.human_date = moment(model.date).fromNow()
|
|
model
|
|
|
|
ActivityItem |