mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Changelog will only show updates with notable changes
This commit is contained in:
parent
5f93cbc83b
commit
ea5549d736
5 changed files with 23 additions and 5 deletions
18
UI/Handlebars/Helpers/Version.js
Normal file
18
UI/Handlebars/Helpers/Version.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'handlebars'
|
||||
], function (Handlebars) {
|
||||
|
||||
Handlebars.registerHelper('currentVersion', function (version) {
|
||||
var currentVersion = window.NzbDrone.ServerStatus.version;
|
||||
|
||||
if (currentVersion === version)
|
||||
{
|
||||
return new Handlebars.SafeString('<i class="icon-ok" title="Installed"></i>');
|
||||
}
|
||||
|
||||
return '';
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue