2017-05-12 14:49:44 +02:00
|
|
|
|
using Umbraco.Core;
|
2016-03-30 16:07:45 +02:00
|
|
|
|
using Umbraco.Core.IO;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Trees
|
|
|
|
|
|
{
|
|
|
|
|
|
[Tree(Constants.Applications.Settings, Constants.Trees.Stylesheets, "Stylesheets", "icon-folder", "icon-folder", sortOrder: 3)]
|
|
|
|
|
|
public class StylesheetsTreeController : FileSystemTreeController
|
|
|
|
|
|
{
|
2017-05-12 14:49:44 +02:00
|
|
|
|
protected override IFileSystem FileSystem => Current.FileSystems.StylesheetsFileSystem; // fixme inject
|
2016-03-30 16:07:45 +02:00
|
|
|
|
|
2017-05-12 14:49:44 +02:00
|
|
|
|
private static readonly string[] ExtensionsStatic = { "css" };
|
2016-03-30 16:07:45 +02:00
|
|
|
|
|
2017-05-12 14:49:44 +02:00
|
|
|
|
protected override string[] Extensions => ExtensionsStatic;
|
2016-03-30 16:07:45 +02:00
|
|
|
|
|
2017-05-12 14:49:44 +02:00
|
|
|
|
protected override string FileIcon => "icon-brackets";
|
2016-09-01 19:06:08 +02:00
|
|
|
|
|
2017-05-12 14:49:44 +02:00
|
|
|
|
protected override bool EnableCreateOnFolder => false;
|
2016-03-30 16:07:45 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|