From 5cb5d0868f029ebb87edf29ef827ac50d89ca6f4 Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Tue, 14 Sep 2010 07:24:54 -0700 Subject: [PATCH] Tweaking the UI debugging...UI...so it's not so "in yo' face" by default --HG-- branch : theming --- .../Orchard.DevTools/Orchard.DevTools.csproj | 1 + .../Modules/Orchard.DevTools/Shapes.cs | 4 +- .../Orchard.DevTools/Views/HackScript.cshtml | 31 ++++++++++++++ .../Orchard.DevTools/Views/HackStyle.cshtml | 42 ++++++++++++++++++- 4 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 src/Orchard.Web/Modules/Orchard.DevTools/Views/HackScript.cshtml diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj b/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj index 71b65e1b7..fbda6f86d 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj @@ -127,6 +127,7 @@ + diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Shapes.cs b/src/Orchard.Web/Modules/Orchard.DevTools/Shapes.cs index 1321bd4c2..31284dd31 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Shapes.cs +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Shapes.cs @@ -9,8 +9,10 @@ namespace Orchard.DevTools { public void Created(ShapeCreatedContext context) { if (context.ShapeType != "Layout" && context.ShapeType != "DocumentZone") context.Shape.Metadata.Wrappers.Add("ThinBorder"); - if (context.ShapeType == "Header") + if (context.ShapeType == "Header") { + context.Shape.Metadata.Wrappers.Add("HackScript"); context.Shape.Metadata.Wrappers.Add("HackStyle"); + } } } } diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackScript.cshtml b/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackScript.cshtml new file mode 100644 index 000000000..b2729017e --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackScript.cshtml @@ -0,0 +1,31 @@ + + +@Display(Model.Metadata.ChildContent) \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackStyle.cshtml b/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackStyle.cshtml index ed68d7b19..6b51056fe 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackStyle.cshtml +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Views/HackStyle.cshtml @@ -1,10 +1,48 @@