From b95534b1cfec622fad1f0b3a1af343b3420aae33 Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Thu, 1 Jul 2010 15:21:51 -0700 Subject: [PATCH] A little more markup cleanup (of something that just gave me a 500) --HG-- branch : dev --- .../Orchard.ContentTypes/Views/EditorTemplates/Parts.ascx | 3 ++- .../Orchard.ContentTypes/Views/EditorTemplates/Settings.ascx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Parts.ascx b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Parts.ascx index b821e2d1e..8f6e4b0ff 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Parts.ascx +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Parts.ascx @@ -1,4 +1,5 @@ -<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl>" %><% +<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl>" %> +<% if (Model.Any()) { %>
<% var pi = 0; diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Settings.ascx b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Settings.ascx index 5a0f59533..002f1224d 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Settings.ascx +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Settings.ascx @@ -1,5 +1,6 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> -<%@ import Namespace="Orchard.ContentManagement.MetaData.Models" %><% +<%@ import Namespace="Orchard.ContentManagement.MetaData.Models" %> +<% if (Model.Any()) { %>
<% var si = 0;