mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
27 lines
604 B
JavaScript
27 lines
604 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'handlebars',
|
|
'System/StatusModel'
|
|
], function (Handlebars, 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);
|
|
});
|
|
});
|