1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-19 22:00:34 +00:00
Sonarr/UI/Handlebars/Helpers/Version.js

18 lines
438 B
JavaScript

'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 '';
});
});