OS X and linux can be treated separately

This commit is contained in:
Mark McDowall
2014-03-08 21:28:40 -08:00
parent 9d74693bb7
commit 8885bbb60f
22 changed files with 101 additions and 50 deletions

View File

@@ -8,16 +8,16 @@
<option es3="false" />
<option forin="true" />
<option immed="true" />
<option latedef="true" />
<option newcap="true" />
<option noarg="true" />
<option noempty="false" />
<option nonew="true" />
<option plusplus="false" />
<option undef="true" />
<option unused="true" />
<option strict="true" />
<option trailing="false" />
<option latedef="true" />
<option unused="true" />
<option quotmark="single" />
<option maxdepth="3" />
<option asi="false" />

View File

@@ -15,8 +15,8 @@ define(
return options.inverse(this);
});
Handlebars.registerHelper('if_linux', function(options) {
if (StatusModel.get('isLinux'))
Handlebars.registerHelper('if_mono', function(options) {
if (StatusModel.get('isMono'))
{
return options.fn(this);
}

View File

@@ -1,4 +1,4 @@
{{#if_linux}}
{{#if_mono}}
<fieldset class="advanced-setting">
<legend>Permissions</legend>
@@ -67,4 +67,4 @@
</div>
</div>
</fieldset>
{{/if_linux}}
{{/if_mono}}