Adds node styles and ensures they are set for the content tree nodes, now to get them to display styles

This commit is contained in:
Shannon
2013-10-08 12:58:11 +11:00
parent 883a662240
commit 3a33a39411
3 changed files with 85 additions and 37 deletions

View File

@@ -14,6 +14,7 @@ using Umbraco.Web.Mvc;
using umbraco;
using umbraco.BusinessLogic.Actions;
using umbraco.businesslogic;
using umbraco.cms.businesslogic.web;
using umbraco.interfaces;
using Constants = Umbraco.Core.Constants;
@@ -79,6 +80,15 @@ namespace Umbraco.Web.Trees
e.ContentTypeIcon,
hasChildren);
if (e.IsPublished == false)
node.SetNotPublishedStyle();
if (e.HasPendingChanges)
node.SetHasUnpublishedVersionStyle();
if (Access.IsProtected(e.Id, e.Path))
node.SetProtectedStyle();
nodes.Add(node);
}
}