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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user