From dfb0efbc985ee62738d591e0be06d3ef601706e6 Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 7 Mar 2018 14:43:30 +0100 Subject: [PATCH] Removed option to assign templates from the info tab --- .../content/umbcontentnodeinfo.directive.js | 2 ++ .../content/umb-content-node-info.html | 28 +++++++++---------- .../Editors/BackOfficeServerVariables.cs | 2 +- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js index 2ce0c5a22e..8665420e45 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js @@ -8,6 +8,8 @@ var evts = []; var isInfoTab = false; scope.publishStatus = {}; + + scope.disableTemplate = Umbraco.Sys.ServerVariables.disabledFeatures.disableTemplate; function onInit() { diff --git a/src/Umbraco.Web.UI.Client/src/views/components/content/umb-content-node-info.html b/src/Umbraco.Web.UI.Client/src/views/components/content/umb-content-node-info.html index 564d50951e..24223c1c75 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/content/umb-content-node-info.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/content/umb-content-node-info.html @@ -171,36 +171,36 @@ {{publishStatus.label}} - + {{node.createDateFormatted}} by {{ node.owner.name }} - + - - +
{{ node.id }}
{{ node.key }}
- + diff --git a/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs b/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs index 8ba22b8d52..c8b038c027 100644 --- a/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs +++ b/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs @@ -336,7 +336,7 @@ namespace Umbraco.Web.Editors "disabledFeatures", new Dictionary { { - "disableTemplate", FeaturesResolver.Current.Features.Disabled.DisableTemplate + "disableTemplate", true //FeaturesResolver.Current.Features.Disabled.DisableTemplate } } }