From 1e826830f2b3c683004dd751038066cf9bffb0cd Mon Sep 17 00:00:00 2001 From: Renaud Paquay Date: Thu, 7 Oct 2010 10:48:51 -0700 Subject: [PATCH] Fix Razor views "using" syntax "@using" directive now requires a semicolon at the end. --HG-- branch : dev --- .../Fields/Common.TextField.cshtml | 2 +- .../Parts/Common.Body.Manage.cshtml | 2 +- .../Parts/Common.Body.ManageWrapperPost.cshtml | 2 +- .../Parts/Common.Body.ManageWrapperPre.cshtml | 2 +- .../Parts/Common.Body.Summary.cshtml | 2 +- .../DisplayTemplates/Parts/Common.Body.cshtml | 2 +- .../DisplayTemplates/Parts/Common.Metadata.cshtml | 2 +- .../EditorTemplates/Parts/Common.Body.cshtml | 2 +- .../EditorTemplates/Parts/Common.Container.cshtml | 2 +- .../EditorTemplates/Parts/Common.Owner.cshtml | 2 +- .../Views/EditorTemplates/PlainTextEditor.cshtml | 2 +- .../Core/Contents/Views/Admin/List.cshtml | 2 +- .../Parts/Contents.Publish.SummaryAdmin.cshtml | 4 ++-- .../Views/Items/Content.SummaryAdmin.cshtml | 4 ++-- .../Localization/Views/Admin/Translate.cshtml | 2 +- .../Parts/Messaging.MessageSettings.cshtml | 4 ++-- .../Core/Navigation/Views/Admin/Index.cshtml | 6 +++--- .../Parts/Navigation.EditMenuPart.cshtml | 4 ++-- .../Core/Reports/Views/Admin/Display.cshtml | 2 +- .../Core/Reports/Views/Admin/Index.cshtml | 2 +- .../Parts/Routable.RoutePart.cshtml | 2 +- .../Core/Settings/Views/Admin/Culture.cshtml | 2 +- .../Parts/Settings.SiteSettingsPart.cshtml | 2 +- src/Orchard.Web/Core/Shapes/Views/Document.cshtml | 4 ++-- src/Orchard.Web/Core/Shapes/Views/User.cshtml | 2 +- .../ArchiveLater.Metadata.SummaryAdmin.cshtml | 2 +- .../EditorTemplates/Parts/ArchiveLater.cshtml | 2 +- .../Orchard.Blogs/Views/BlogAdmin/List.cshtml | 2 +- .../Orchard.Blogs/Views/BlogArchives.cshtml | 4 ++-- .../Views/BlogPost/ListByArchive.cshtml | 2 +- .../Parts/Blogs.Blog.Manage.cshtml | 2 +- .../Parts/Blogs.BlogPost.List.Admin.cshtml | 4 ++-- .../Views/Items/Content.Admin.Blog.cshtml | 4 ++-- .../Orchard.Blogs/Views/Items/Content.Blog.cshtml | 4 ++-- .../Views/Items/Content.Edit.BlogPost.cshtml | 2 +- .../Views/Items/Content.Summary.Blog.cshtml | 4 ++-- .../Views/Items/Content.Summary.BlogPost.cshtml | 10 +++++----- .../Views/Items/Content.SummaryAdmin.Blog.cshtml | 4 ++-- .../Items/Content.SummaryAdmin.BlogPost.cshtml | 8 ++++---- .../Orchard.Comments/Views/Admin/Details.cshtml | 4 ++-- .../Orchard.Comments/Views/Admin/Edit.cshtml | 2 +- .../Orchard.Comments/Views/Admin/Index.cshtml | 4 ++-- .../Parts/Comments.Comments.cshtml | 8 ++++---- .../DisplayTemplates/Parts/Comments.Count.cshtml | 2 +- .../Parts/Comments.CountAdmin.cshtml | 4 ++-- .../Parts/Comments.Comments.cshtml | 6 +++--- .../Parts/Comments.SiteSettings.cshtml | 2 +- .../Orchard.Comments/Views/ListOfComments.cshtml | 2 +- .../DisplayTemplates/EditTypeViewModel.cshtml | 2 +- .../Views/DisplayTemplates/Settings.cshtml | 2 +- .../Views/EditorTemplates/Settings.cshtml | 2 +- .../Parts/Smtp.SiteSettings.cshtml | 2 +- .../Orchard.Experimental/Views/ThinBorder.cshtml | 4 ++-- .../Modules/Orchard.Media/Views/Admin/Add.cshtml | 4 ++-- .../Orchard.Media/Views/Admin/Create.cshtml | 4 ++-- .../Modules/Orchard.Media/Views/Admin/Edit.cshtml | 4 ++-- .../Orchard.Media/Views/Admin/EditMedia.cshtml | 4 ++-- .../Views/Admin/EditProperties.cshtml | 4 ++-- .../Orchard.Modules/Views/Admin/Add.cshtml | 2 +- .../Orchard.Modules/Views/Admin/Features.cshtml | 10 +++++----- .../Orchard.Modules/Views/Admin/Index.cshtml | 6 +++--- .../DisplayTemplates/ActionsForDisabled.cshtml | 2 +- .../DisplayTemplates/ActionsForInvalid.cshtml | 2 +- .../DisplayTemplates/ActionsForRunning.cshtml | 2 +- .../ActionsForUninitialized.cshtml | 2 +- .../Orchard.MultiTenancy/Views/Admin/Edit.cshtml | 2 +- .../Orchard.MultiTenancy/Views/Admin/Index.cshtml | 2 +- .../Orchard.Roles/Views/Admin/Create.cshtml | 2 +- .../Modules/Orchard.Roles/Views/Admin/Edit.cshtml | 2 +- .../Orchard.Roles/Views/Admin/Index.cshtml | 2 +- .../EditorTemplates/Parts/Roles.UserRoles.cshtml | 2 +- .../Parts/Search.SiteSettings.cshtml | 2 +- .../Orchard.Search/Views/SearchForm.cshtml | 2 +- .../Orchard.Setup/Views/Setup/Index.cshtml | 2 ++ .../Modules/Orchard.Tags/Views/Admin/Index.cshtml | 2 +- .../Orchard.Tags/Views/Admin/Search.cshtml | 2 +- .../Orchard.Users/Views/Admin/Index.cshtml | 2 +- src/Orchard.Web/Orchard.Web.csproj | 2 +- .../Themes/Classic/Views/Layout.cshtml | 15 ++++++++------- .../Themes/ClassicDark/Views/Layout.cshtml | 2 +- .../Themes/SafeMode/Views/Document.cshtml | 8 ++++---- .../Themes/SafeMode/Views/Layout.cshtml | 2 +- .../Themes/TheAdmin/Views/DumpShapeTable.cshtml | 4 ++-- .../Themes/TheAdmin/Views/Layout.cshtml | 10 +++++----- .../Themes/TheThemeMachine/Views/Document.cshtml | 4 ++-- .../Views/Items/Content.Blog.cshtml | 4 ++-- 86 files changed, 144 insertions(+), 141 deletions(-) diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml index 652feef47..cf10b0d50 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Fields/Common.TextField.cshtml @@ -1,3 +1,3 @@ @model Orchard.Core.Common.Fields.TextField -@using Orchard.Utility.Extensions +@using Orchard.Utility.Extensions;

@Model.Name.CamelFriendly(): @Model.Value

\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml index 45bdd3478..7340291dc 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.cshtml @@ -1,5 +1,5 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels;
@Html.ItemEditLinkWithReturnUrl(T("Edit").ToString(), Model.BodyPart.ContentItem)
\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml index 9a9ee2c1d..8c4356c0c 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPost.cshtml @@ -1,5 +1,5 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels; @/* begin: knowingly broken HTML (hence the ManageWrapperPre and ManageWrapperPost templates) we need "wrapper templates" (among other functionality) in the future of UI composition please do not delete or the front end will be broken when the user is authenticated. */ diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml index c9182ef28..930523ad4 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.ManageWrapperPre.cshtml @@ -1,3 +1,3 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels;
\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml index 64c03cd9b..aa05472da 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.cshtml @@ -1,5 +1,5 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels; @/*//doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data //also, doing this here, inline, until we have a pluggable processing model (both in and out) //also, ...this is ugly*/ diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml index b3b4584d8..0592419bf 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.cshtml @@ -1,3 +1,3 @@ @model BodyDisplayViewModel -@using Orchard.Core.Common.ViewModels +@using Orchard.Core.Common.ViewModels; @Model.Html \ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml index d5cbe0eee..fa8036d7e 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Metadata.cshtml @@ -1,5 +1,5 @@ @model Orchard.Core.Common.ViewModels.CommonMetadataViewModel -@using Orchard.Core.Common.Extensions +@using Orchard.Core.Common.Extensions; @if (Model.Creator != null) {