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.
27 lines
604 B
27 lines
604 B
'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);
|
|
});
|
|
});
|