You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/UI/Handlebars/Helpers/System.js

18 lines
446 B

var Handlebars = require('handlebars');
var StatusModel = require('../../System/StatusModel');
Handlebars.registerHelper('if_windows', function(options) {
if (StatusModel.get('isWindows')) {
return options.fn(this);
}
return options.inverse(this);
});
Handlebars.registerHelper('if_mono', function(options) {
if (StatusModel.get('isMono')) {
return options.fn(this);
}
return options.inverse(this);
});