mirror of https://github.com/Sonarr/Sonarr
Hiding permissions when OS is windows
This commit is contained in:
parent
49168cad25
commit
25ae19bf80
|
@ -1,9 +0,0 @@
|
||||||
'use strict';
|
|
||||||
define(
|
|
||||||
[
|
|
||||||
'handlebars'
|
|
||||||
], function (Handlebars) {
|
|
||||||
Handlebars.registerHelper('LinuxOnly', function () {
|
|
||||||
return new Handlebars.SafeString('<i class="icon-linux" title="Linux Only"></i>');
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -19,7 +19,7 @@ define(
|
||||||
if (StatusModel.get('isLinux'))
|
if (StatusModel.get('isLinux'))
|
||||||
{
|
{
|
||||||
return options.fn(this);
|
return options.fn(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return options.inverse(this);
|
return options.inverse(this);
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,7 +10,6 @@ define(
|
||||||
'Handlebars/Helpers/Series',
|
'Handlebars/Helpers/Series',
|
||||||
'Handlebars/Helpers/Quality',
|
'Handlebars/Helpers/Quality',
|
||||||
'Handlebars/Helpers/System',
|
'Handlebars/Helpers/System',
|
||||||
'Handlebars/Helpers/Os',
|
|
||||||
'Handlebars/Handlebars.Debug'
|
'Handlebars/Handlebars.Debug'
|
||||||
], function (Templates) {
|
], function (Templates) {
|
||||||
return function () {
|
return function () {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<fieldset class="advanced-setting">
|
{{#if_linux}}
|
||||||
|
<fieldset class="advanced-setting">
|
||||||
<legend>Permissions</legend>
|
<legend>Permissions</legend>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<span class="help-inline-checkbox">
|
<span class="help-inline-checkbox">
|
||||||
{{LinuxOnly}}
|
|
||||||
<i class="icon-question-sign" title="Should chmod/chown be run when files are imported/renamed?"/>
|
<i class="icon-question-sign" title="Should chmod/chown be run when files are imported/renamed?"/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,7 +28,6 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="fileChmod"/>
|
<input type="text" name="fileChmod"/>
|
||||||
<span class="help-inline">
|
<span class="help-inline">
|
||||||
{{LinuxOnly}}
|
|
||||||
<i class="icon-nd-form-info" title="Octal, applied to media files when imported/renamed by NzbDrone"/>
|
<i class="icon-nd-form-info" title="Octal, applied to media files when imported/renamed by NzbDrone"/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,9 +39,9 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="folderChmod"/>
|
<input type="text" name="folderChmod"/>
|
||||||
<span class="help-inline">
|
<span class="help-inline">
|
||||||
{{LinuxOnly}}
|
|
||||||
<i class="icon-nd-form-info" title="Octal, applied to series/season folders created by NzbDrone"/>
|
<i class="icon-nd-form-info" title="Octal, applied to series/season folders created by NzbDrone"/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
{{/if_linux}}
|
Loading…
Reference in New Issue