Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion SiteServer.BackgroundPages/Core/ChannelTreeItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ private ChannelTreeItem(SiteInfo siteInfo, ChannelInfo channelInfo, bool enabled
_permissionManager = permissionManager;

var treeDirectoryUrl = SiteServerAssets.GetIconUrl("tree");
_contentModelIconClass = "ion-folder";

//为后台栏目树中的首页和外链栏目添加图标
if (_channelInfo.ParentId == 0) _contentModelIconClass = "ion-ios-home";
else if (_channelInfo.LinkUrl.Length != 0) _contentModelIconClass = "ion-link";
else _contentModelIconClass = "ion-folder";

_iconEmptyUrl = PageUtils.Combine(treeDirectoryUrl, "empty.gif");
_iconMinusUrl = PageUtils.Combine(treeDirectoryUrl, "minus.png");
_iconPlusUrl = PageUtils.Combine(treeDirectoryUrl, "plus.png");
Expand Down