From 25ae19bf804dd9fbc70d9a4d72fd4f5f3dd21d82 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 26 Jan 2014 14:16:12 -0800 Subject: [PATCH] Hiding permissions when OS is windows --- src/UI/Handlebars/Helpers/Os.js | 9 --------- src/UI/Handlebars/Helpers/System.js | 2 +- src/UI/Handlebars/backbone.marionette.templates.js | 1 - .../Permissions/PermissionsViewTemplate.html | 9 ++++----- 4 files changed, 5 insertions(+), 16 deletions(-) delete mode 100644 src/UI/Handlebars/Helpers/Os.js diff --git a/src/UI/Handlebars/Helpers/Os.js b/src/UI/Handlebars/Helpers/Os.js deleted file mode 100644 index 0d46f7391..000000000 --- a/src/UI/Handlebars/Helpers/Os.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; -define( - [ - 'handlebars' - ], function (Handlebars) { - Handlebars.registerHelper('LinuxOnly', function () { - return new Handlebars.SafeString(''); - }); - }); diff --git a/src/UI/Handlebars/Helpers/System.js b/src/UI/Handlebars/Helpers/System.js index f5517db84..13cead2f7 100644 --- a/src/UI/Handlebars/Helpers/System.js +++ b/src/UI/Handlebars/Helpers/System.js @@ -19,7 +19,7 @@ define( if (StatusModel.get('isLinux')) { return options.fn(this); - } + } return options.inverse(this); }); diff --git a/src/UI/Handlebars/backbone.marionette.templates.js b/src/UI/Handlebars/backbone.marionette.templates.js index f849da4f1..2c589a5cb 100644 --- a/src/UI/Handlebars/backbone.marionette.templates.js +++ b/src/UI/Handlebars/backbone.marionette.templates.js @@ -10,7 +10,6 @@ define( 'Handlebars/Helpers/Series', 'Handlebars/Helpers/Quality', 'Handlebars/Helpers/System', - 'Handlebars/Helpers/Os', 'Handlebars/Handlebars.Debug' ], function (Templates) { return function () { diff --git a/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html b/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html index 9528724e6..1c6a0c81e 100644 --- a/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html +++ b/src/UI/Settings/MediaManagement/Permissions/PermissionsViewTemplate.html @@ -1,4 +1,5 @@ -
+{{#if_linux}} +
Permissions
@@ -16,7 +17,6 @@ - {{LinuxOnly}}
@@ -28,7 +28,6 @@
- {{LinuxOnly}}
@@ -40,9 +39,9 @@
- {{LinuxOnly}}
-
\ No newline at end of file +
+{{/if_linux}} \ No newline at end of file