Added build date to footer

This commit is contained in:
Mark McDowall 2013-06-15 15:18:41 -07:00
parent d538fe62cf
commit d3d937afcc
6 changed files with 18 additions and 6 deletions

View file

@ -3,7 +3,16 @@ define(['app'], function () {
NzbDrone.Shared.Footer.Model = Backbone.Model.extend({
defaults: {
'version' : '0.0.0.0'
'version' : '0.0.0.0',
'buildDate' : Date.create()
},
mutators: {
humanizedBuildDate: function () {
var date = Date.create(this.get('buildDate'));
return date.short();
}
}
});