mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
Added build date to footer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
<p>© Copyright 2013 NzbDrone</p>
|
||||
<p>v{{version}}</p>
|
||||
<p>v{{version}} ({{humanizedBuildDate}})</p>
|
@@ -8,6 +8,7 @@ define(['app',
|
||||
initialize: function () {
|
||||
this.model = new NzbDrone.Shared.Footer.Model();
|
||||
this.model.set('version', NzbDrone.Constants.Version);
|
||||
this.model.set('buildDate', NzbDrone.Constants.BuildDate);
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -1,3 +0,0 @@
|
||||
footer {
|
||||
font-size: 12.6px;
|
||||
}
|
Reference in New Issue
Block a user