mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-14 17:00:48 +02:00
26 lines
602 B
JavaScript
26 lines
602 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_linux', function(options) {
|
|
if (StatusModel.get('isLinux'))
|
|
{
|
|
return options.fn(this);
|
|
}
|
|
|
|
return options.inverse(this);
|
|
});
|
|
});
|