mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Version added to footer
This commit is contained in:
parent
0ae1865dd8
commit
f94220c5ff
10 changed files with 52 additions and 18 deletions
11
UI/Shared/Footer/Model.js
Normal file
11
UI/Shared/Footer/Model.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
"use strict";
|
||||
define(['app'], function () {
|
||||
|
||||
NzbDrone.Shared.Footer.Model = Backbone.Model.extend({
|
||||
defaults: {
|
||||
'version' : '0.0.0.0'
|
||||
}
|
||||
});
|
||||
|
||||
return NzbDrone.Shared.Footer.Model;
|
||||
});
|
2
UI/Shared/Footer/Template.html
Normal file
2
UI/Shared/Footer/Template.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<p>© Copyright 2013 NzbDrone</p>
|
||||
<p>v{{version}}</p>
|
15
UI/Shared/Footer/View.js
Normal file
15
UI/Shared/Footer/View.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
define(['app',
|
||||
'Shared/Footer/Model'], function () {
|
||||
NzbDrone.Shared.Footer.View = Backbone.Marionette.ItemView.extend({
|
||||
|
||||
template: 'Shared/Footer/Template',
|
||||
|
||||
initialize: function () {
|
||||
this.model = new NzbDrone.Shared.Footer.Model();
|
||||
this.model.version = NzbDrone.Constants.Version;
|
||||
}
|
||||
});
|
||||
|
||||
return new NzbDrone.Shared.Footer.View();
|
||||
});
|
3
UI/Shared/Footer/footer.less
Normal file
3
UI/Shared/Footer/footer.less
Normal file
|
@ -0,0 +1,3 @@
|
|||
footer {
|
||||
font-size: 12.6px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue