mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
cache busting for js file based on server version.
This commit is contained in:
parent
5c3f0203e5
commit
0916c8b8d1
12 changed files with 205 additions and 126 deletions
|
@ -1,18 +0,0 @@
|
|||
"use strict";
|
||||
define(['app'], function () {
|
||||
|
||||
return Backbone.Model.extend({
|
||||
defaults: {
|
||||
'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}} ({{humanizedBuildDate}})</p>
|
||||
© Copyright 2013 NzbDrone
|
||||
<p>v{{version}} ({{ShortDate buildTime}})</p>
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
"use strict";
|
||||
define(['app',
|
||||
'Shared/Footer/Model'], function (App, FooterModel) {
|
||||
return Backbone.Marionette.ItemView.extend({
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'System/StatusModel'
|
||||
], function (Marionette, StatusModel) {
|
||||
return Marionette.ItemView.extend({
|
||||
|
||||
template: 'Shared/Footer/Template',
|
||||
|
||||
initialize: function () {
|
||||
this.model = new FooterModel();
|
||||
this.model.set('version', NzbDrone.Constants.Version);
|
||||
this.model.set('buildDate', NzbDrone.Constants.BuildDate);
|
||||
}
|
||||
template: 'Shared/Footer/Template',
|
||||
model : StatusModel
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue