From a48dd211a48e38813646b8edadc485c761a11be5 Mon Sep 17 00:00:00 2001 From: Phil Haack Date: Thu, 10 Jun 2010 23:39:49 -0700 Subject: [PATCH] More <%= to <%: cleanup. --HG-- branch : dev --- .../Parts/Common.Body.Manage.ascx | 2 +- .../Parts/Common.Body.Summary.ascx | 6 ++-- .../EditorTemplates/Parts/Common.Body.ascx | 2 +- .../Parts/Common.Container.ascx | 6 ++-- .../Parts/Common.Routable.ascx | 2 +- .../Core/Navigation/Views/Admin/Index.ascx | 8 ++--- .../Parts/Routable.IsRoutable.ascx | 18 +++++----- .../DisplayTemplates/RemovableCulture.ascx | 2 +- .../Orchard.Blogs/Views/BlogAdmin/List.ascx | 4 +-- .../Views/BlogPost/ListByArchive.ascx | 2 +- .../Items/Blogs.Blog.DetailAdmin.ascx | 4 +-- .../Items/Blogs.Blog.SummaryAdmin.ascx | 8 ++--- .../Items/Blogs.BlogPost.Summary.ascx | 2 +- .../Items/Blogs.BlogPost.SummaryAdmin.ascx | 16 ++++----- .../Parts/Blogs.Blog.Manage.ascx | 2 +- .../EditorTemplates/Items/Blogs.BlogPost.ascx | 2 +- .../Orchard.Comments/Views/Admin/Details.aspx | 30 ++++++++-------- .../Orchard.Comments/Views/Admin/Index.aspx | 28 +++++++-------- .../Parts/Comments.CountAdmin.ascx | 2 +- .../Parts/Comments.HasComments.ascx | 4 +-- .../Parts/Comments.HasComments.ascx | 8 ++--- .../Views/ListOfComments.ascx | 2 +- .../Views/Content/Details.aspx | 4 +-- .../Orchard.DevTools/Views/Content/Index.aspx | 4 +-- .../Orchard.Media/Views/Admin/Add.aspx | 2 +- .../Orchard.Media/Views/Admin/EditMedia.aspx | 12 +++---- .../Views/Admin/ContentTypeList.ascx | 4 +-- .../Orchard.Modules/Views/Admin/Features.ascx | 2 +- .../Orchard.Modules/Views/Admin/Index.ascx | 2 +- .../Orchard.Pages/Views/Admin/List.aspx | 36 +++++++++---------- .../Items/Pages.Page.Summary.ascx | 2 +- .../EditorTemplates/Items/Pages.Page.ascx | 2 +- .../DisplayTemplates/Items/Sandbox.Page.ascx | 2 +- .../Parts/Sandbox.Page.Title.ascx | 2 +- .../Orchard.Search/Views/Admin/Index.ascx | 10 +++--- .../Orchard.Search/Views/Search/Index.ascx | 8 ++--- .../Orchard.Search/Views/SearchForm.ascx | 4 +-- .../Orchard.Setup/Views/Setup/Index.ascx | 2 +- .../Orchard.Tags/Views/Admin/Index.aspx | 10 +++--- .../Orchard.Tags/Views/Admin/Search.aspx | 4 +-- .../Orchard.Tags/Views/Home/Search.ascx | 2 +- .../Orchard.Themes/Views/Admin/Index.aspx | 4 +-- .../Views/Admin/ThemePreview.ascx | 4 +-- .../Modules/Orchard.Themes/Views/User.ascx | 2 +- .../EditorTemplates/TinyMceTextEditor.ascx | 8 ++--- .../Items/Blogs.Blog.Summary.ascx | 2 +- .../Items/Blogs.BlogPost.Summary.ascx | 2 +- .../Items/Blogs.BlogPost.ascx | 2 +- .../Items/Blogs.Blog.Summary.ascx | 2 +- .../Items/Blogs.BlogPost.Summary.ascx | 2 +- .../Items/Blogs.BlogPost.ascx | 2 +- .../Items/Blogs.BlogPost.ListByArchive.ascx | 2 +- .../Parts/Comments.HasComments.ascx | 4 +-- .../Themes/Contoso/Views/Layout.HomePage.ascx | 2 +- .../Items/Blogs.BlogPost.ListByArchive.ascx | 2 +- .../Parts/Comments.HasComments.ascx | 4 +-- .../Corporate/Views/Layout.HomePage.ascx | 4 +-- .../Themes/Corporate/Views/Layout.ascx | 4 +-- .../Corporate/Views/ListOfComments.ascx | 2 +- .../Items/Blogs.Blog.Summary.ascx | 2 +- .../Items/Blogs.BlogPost.Summary.ascx | 2 +- .../Themes/Green/Views/ListOfComments.ascx | 2 +- src/Orchard/Localization/LocalizedString.cs | 4 --- src/Orchard/Mvc/Html/HtmlHelperExtensions.cs | 18 +++++----- 64 files changed, 176 insertions(+), 180 deletions(-) diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.ascx b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.ascx index 789b30d21..71cf574c5 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.ascx +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Manage.ascx @@ -1,5 +1,5 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Core.Common.ViewModels"%>
- <%: Html.ItemEditLinkWithReturnUrl(T("Edit"), Model.BodyAspect.ContentItem) %> + <%: Html.ItemEditLinkWithReturnUrl(T("Edit").ToString(), Model.BodyAspect.ContentItem) %>
\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.ascx b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.ascx index 681573b99..a1b1280ae 100644 --- a/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.ascx +++ b/src/Orchard.Web/Core/Common/Views/DisplayTemplates/Parts/Common.Body.Summary.ascx @@ -3,7 +3,7 @@ <%--//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--%> -<%=string.Format( +<%: new HtmlString(string.Format( "

{0} {1}

", - Html.Excerpt(Model.Text, 200).ToString().Replace("\r\n", "

\r\n

"), - Html.ItemDisplayLink(T("[more]").ToString(), Model.BodyAspect.ContentItem)) %> \ No newline at end of file + Html.Excerpt(Model.Text, 200).ToString().Replace(Environment.NewLine, "

" + Environment.NewLine + "

"), + Html.ItemDisplayLink(T("[more]").ToString(), Model.BodyAspect.ContentItem))) %> \ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Body.ascx b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Body.ascx index 1dfd97beb..86bee340c 100644 --- a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Body.ascx +++ b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Body.ascx @@ -2,6 +2,6 @@ <%@ Import Namespace="Orchard.Core.Common.ViewModels" %>

- <%=Html.Partial("EditorTemplates/" + Model.TextEditorTemplate, Model) %> + <%: Html.Partial("EditorTemplates/" + Model.TextEditorTemplate, Model) %> <%: Html.ValidationMessageFor(m => m.Text) %>
\ No newline at end of file diff --git a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Container.ascx b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Container.ascx index fbefbac2d..32f6ff1b4 100644 --- a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Container.ascx +++ b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Container.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Core.Common.ViewModels" %>
- <%=Html.LabelFor(m=>m.ContainerId) %> - <%=Html.EditorFor(m=>m.ContainerId) %> - <%=Html.ValidationMessageFor(m=>m.ContainerId) %> + <%: Html.LabelFor(m=>m.ContainerId) %> + <%: Html.EditorFor(m=>m.ContainerId) %> + <%: Html.ValidationMessageFor(m=>m.ContainerId) %>
diff --git a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx index e018b7dac..cda27f412 100644 --- a/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx +++ b/src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Routable.ascx @@ -21,7 +21,7 @@ $("<%=String.Format("input#{0}Title", !string.IsNullOrEmpty(Model.Prefix) ? Model.Prefix + "_" : "") %>").blur(function(){ $(this).slugify({ target:$("<%=String.Format("input#{0}Slug", !string.IsNullOrEmpty(Model.Prefix) ? Model.Prefix + "_" : "") %>"), - url:"<%=Url.Slugify() %>", + url:"<%: Url.Slugify() %>", contentType:"<%=Model.RoutableAspect.ContentItem.ContentType %>", id:"<%=Model.RoutableAspect.ContentItem.Id %>"<% var commonAspect = Model.RoutableAspect.ContentItem.As(); diff --git a/src/Orchard.Web/Core/Navigation/Views/Admin/Index.ascx b/src/Orchard.Web/Core/Navigation/Views/Admin/Index.ascx index 9725443cd..3afc1bc8f 100644 --- a/src/Orchard.Web/Core/Navigation/Views/Admin/Index.ascx +++ b/src/Orchard.Web/Core/Navigation/Views/Admin/Index.ascx @@ -24,10 +24,10 @@ using (Html.BeginFormAntiForgeryPost()) { %> foreach (var menuPartEntry in Model.MenuItemEntries) { var i = menuPartEntryIndex; %> - - - <% if (!menuPartEntry.IsMenuItem) { %><% } else { %><% } %> - " class="remove"><%: T("Remove") %> + + + <% if (!menuPartEntry.IsMenuItem) { %><% } else { %><% } %> + " class="remove"><%: T("Remove") %> <% ++menuPartEntryIndex; } %> diff --git a/src/Orchard.Web/Core/Routable/Views/EditorTemplates/Parts/Routable.IsRoutable.ascx b/src/Orchard.Web/Core/Routable/Views/EditorTemplates/Parts/Routable.IsRoutable.ascx index 7eb8638d5..f718e1121 100644 --- a/src/Orchard.Web/Core/Routable/Views/EditorTemplates/Parts/Routable.IsRoutable.ascx +++ b/src/Orchard.Web/Core/Routable/Views/EditorTemplates/Parts/Routable.IsRoutable.ascx @@ -4,12 +4,12 @@ <% Html.RegisterFootScript("jquery.slugify.js"); %>
- <%=Html.LabelFor(m => m.Title) %> - <%=Html.TextBoxFor(m => m.Title, new { @class = "large text" }) %> + <%: Html.LabelFor(m => m.Title) %> + <%: Html.TextBoxFor(m => m.Title, new { @class = "large text" }) %>
@@ -17,14 +17,14 @@ diff --git a/src/Orchard.Web/Core/Settings/Views/DisplayTemplates/RemovableCulture.ascx b/src/Orchard.Web/Core/Settings/Views/DisplayTemplates/RemovableCulture.ascx index 7de8fff75..9e05d07e2 100644 --- a/src/Orchard.Web/Core/Settings/Views/DisplayTemplates/RemovableCulture.ascx +++ b/src/Orchard.Web/Core/Settings/Views/DisplayTemplates/RemovableCulture.ascx @@ -1,6 +1,6 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
<%:Model %>
<% using (Html.BeginFormAntiForgeryPost(Url.Action("DeleteCulture", "Admin", new { area = "Settings" }), FormMethod.Post, new {@class = "inline link"})) { %> - <%=Html.Hidden("cultureName", Model, new { id = "" }) %> + <%: Html.Hidden("cultureName", Model, new { id = "" }) %> <% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.ascx b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.ascx index 7540f1460..4ae6ab255 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.ascx +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.ascx @@ -4,8 +4,8 @@

<%: Html.TitleForPage(T("Manage Blogs").ToString()) %>

<%-- todo: Add helper text here when ready.

<%: T("Possible text about setting up and managing a blog goes here.") %>

--%><% if (Model.Entries.Count() > 0) { %> - -<%=Html.UnorderedList(Model.Entries, (entry, i) => { + +<%: Html.UnorderedList(Model.Entries, (entry, i) => { // Add blog post count rendering into "meta" zone entry.ContentItemViewModel.Zones.AddAction("meta", html => { int draftCount = entry.TotalPostCount - entry.ContentItemViewModel.Item.PostCount; diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPost/ListByArchive.ascx b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPost/ListByArchive.ascx index 1166d49d9..5f42b0f35 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPost/ListByArchive.ascx +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPost/ListByArchive.ascx @@ -4,7 +4,7 @@

<%: Html.TitleForPage(T("Archives").ToString(), Model.ArchiveData.Year.ToString(), Model.ArchiveData.Month > 0 ? new DateTime(Model.ArchiveData.Year, Model.ArchiveData.Month, 1).ToString("MMMM") : null, Model.ArchiveData.Day > 0 ? Model.ArchiveData.Day.ToString() : null)%>

-<%=T("Archives").ToString() +<%: T("Archives").ToString() %> / <%: Html.Link(Model.ArchiveData.Year.ToString(), Url.BlogArchiveYear(Model.Blog.Slug, Model.ArchiveData.Year)) %><%=Model.ArchiveData.Month > 0 ? string.Format(" / {0}", Html.Link(Model.ArchiveData.ToDateTime().ToString("MMMM"), Url.BlogArchiveMonth(Model.Blog.Slug, Model.ArchiveData.Year, Model.ArchiveData.Month))) : "" %><%=Model.ArchiveData.Day > 0 ? string.Format(" / {0}", Html.Link(Model.ArchiveData.Day.ToString(), Url.BlogArchiveDay(Model.Blog.Slug, Model.ArchiveData.Year, Model.ArchiveData.Month, Model.ArchiveData.Day))) : "" diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.DetailAdmin.ascx b/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.DetailAdmin.ascx index eb5b72504..7eeb466f6 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.DetailAdmin.ascx +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.DetailAdmin.ascx @@ -2,7 +2,7 @@ <%@ Import Namespace="Orchard.Mvc.ViewModels"%> <%@ Import Namespace="Orchard.Blogs.Extensions"%> <%@ Import Namespace="Orchard.Blogs.Models"%> -

<%: Html.TitleForPage(Model.Item.Name) %> +

<%: Html.TitleForPage(Model.Item.Name) %>

<% Html.Zone("manage"); %><%-- @@ -18,6 +18,6 @@
--%> - + <% Html.Zone("primary"); Html.ZonesAny(); %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.SummaryAdmin.ascx b/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.SummaryAdmin.ascx index 4631f88d9..0644783cf 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.SummaryAdmin.ascx +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Items/Blogs.Blog.SummaryAdmin.ascx @@ -4,10 +4,10 @@ <%@ Import Namespace="Orchard.Blogs.Models"%>
diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Parts/Blogs.Blog.Manage.ascx b/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Parts/Blogs.Blog.Manage.ascx index d2e16c4b2..8ef7e1e26 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Parts/Blogs.Blog.Manage.ascx +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/DisplayTemplates/Parts/Blogs.Blog.Manage.ascx @@ -5,6 +5,6 @@ Html.RegisterStyle("admin.css"); if (AuthorizedFor(Permissions.ManageBlogs)) { %> <% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Items/Blogs.BlogPost.ascx b/src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Items/Blogs.BlogPost.ascx index 1efb3c4df..c28f7ed3a 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Items/Blogs.BlogPost.ascx +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Items/Blogs.BlogPost.ascx @@ -13,7 +13,7 @@ "/><% //TODO: (erikpo) In the future, remove the HasPublished check so the user can delete the content item from here if the choose to if (Model.Item.HasDraft && Model.Item.HasPublished) { %> - <%=Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Blogs", Controller = "BlogPostAdmin", id = Model.Item.Id}), new {@class = "button"})%><% + <%: Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Blogs", Controller = "BlogPostAdmin", id = Model.Item.Id}), new {@class = "button"})%><% } %>
diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.aspx b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.aspx index 5bf6cbca1..221c00862 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.aspx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.aspx @@ -21,22 +21,22 @@ <%: Html.ValidationSummary() %>
- + <%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.None, T("Choose action...").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Approve, T("Approve").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Pend, T("Pend").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.MarkAsSpam, T("Mark as Spam").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentDetailsBulkAction.Delete, T("Remove").ToString())%> " />
- + <%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.All, T("All Comments").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Approved, T("Approved Comments").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Pending, T("Pending Comments").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, CommentDetailsFilter.Spam, T("Spam").ToString())%> "/>
@@ -67,8 +67,8 @@ %> - - + + @@ -83,11 +83,11 @@ <%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%: T(" ...") %> <% } %> - <%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %> + <%: Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %>
  • - " class="ibutton edit" title="<%: T("Edit Comment")%>"><%: T("Edit Comment")%> + " class="ibutton edit" title="<%: T("Edit Comment")%>"><%: T("Edit Comment")%>
  • <%-- a form in a form doesn't quite work <% using (Html.BeginFormAntiForgeryPost(Url.Action("Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}), FormMethod.Post, new { @class = "inline" })) { %> diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.aspx b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.aspx index 689fe4eba..f957a2e38 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.aspx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.aspx @@ -6,22 +6,22 @@ <%: Html.ValidationSummary() %>
    - <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.None, T("Choose action...").ToString()) %> - <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Approve, T("Approve")) %> - <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Pend, T("Pend")) %> - <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.MarkAsSpam, T("Mark as Spam")) %> - <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Delete, T("Remove"))%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Approve, T("Approve").ToString()) %> + <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Pend, T("Pend").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.MarkAsSpam, T("Mark as Spam").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, CommentIndexBulkAction.Delete, T("Remove").ToString())%> " />
    - + <%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.All, T("All Comments").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Approved, T("Approved Comments").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Pending, T("Pending Comments").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, CommentIndexFilter.Spam, T("Spam").ToString())%> "/>
    @@ -54,8 +54,8 @@ %> - - + + <% if (commentEntry.Comment.Status == CommentStatus.Spam) { %><%: T("Spam") %><% } else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%: T("Pending") %><% } @@ -67,12 +67,12 @@ <%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%: T(" ...") %> <% } %> - <%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %> + <%: Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %> <%: Html.ActionLink(commentEntry.CommentedOn, "Details", new { id = commentEntry.Comment.CommentedOn }) %>
    • - " title="<%: T("Edit")%>"><%: T("Edit")%> + " title="<%: T("Edit")%>"><%: T("Edit")%>
    • <%-- a form in a form doesn't quite work <% using (Html.BeginFormAntiForgeryPost(Url.Action("Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}), FormMethod.Post, new { @class = "inline" })) { %> diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.CountAdmin.ascx b/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.CountAdmin.ascx index 5ef625dcb..9460a4782 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.CountAdmin.ascx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.CountAdmin.ascx @@ -1,4 +1,4 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Comments.Extensions"%> <%@ Import Namespace="Orchard.Comments.ViewModels"%> -<%=Html.CommentSummaryLinks(T, Model.Item, Model.CommentCount, Model.PendingCount)%> +<%: Html.CommentSummaryLinks(T, Model.Item, Model.CommentCount, Model.PendingCount)%> diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.HasComments.ascx b/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.HasComments.ascx index f991fc8f5..8a50ccd48 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.HasComments.ascx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/DisplayTemplates/Parts/Comments.HasComments.ascx @@ -16,7 +16,7 @@ if (Model.CommentsActive == false) { } else if(!Request.IsAuthenticated && !AuthorizedFor(Permissions.AddComment)) { %>

      <%: T("Add a Comment") %>

      -

      <%=T("You must {0} to comment.", Html.ActionLink(T("log on").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = string.Format("{0}#addacomment", Context.Request.RawUrl) }))%>

      <% +

      <%: T("You must {0} to comment.", Html.ActionLink(T("log on").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = string.Format("{0}#addacomment", Context.Request.RawUrl) }))%>

      <% } else { %> <% using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, FormMethod.Post, new { @class = "comment" })) { %> @@ -46,7 +46,7 @@ else { %> }%>
      - +
      diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx b/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx index 366aece1a..3480a651f 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx @@ -4,14 +4,14 @@ <%@ Import Namespace="Orchard.Comments.Models" %>
      <%-- todo: (heskew) pull the legend and put the link to the comments elsewhere? --%> - <%: T("Comments")%><% if (Model.Comments.Count > 0) { %> – <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%><% } %> + <%: T("Comments")%><% if (Model.Comments.Count > 0) { %> – <%: Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%><% } %> <%-- todo: (heskew) can get into a weird state if this is disabled but comments are active so, yeah, comment settings on a content item need to be hashed out <%: Html.EditorFor(m => m.CommentsShown) %> - + --%> <%: Html.EditorFor(m => m.CommentsActive) %> - <%=T("Enable to show the comment form. Disabling still allows the existing comments to be shown but does not allow the conversation to continue.")%> + <%: T("Allow new comments") %> + <%: T("Enable to show the comment form. Disabling still allows the existing comments to be shown but does not allow the conversation to continue.")%>
      \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.ascx b/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.ascx index 7e93f370e..807ca2925 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.ascx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/ListOfComments.ascx @@ -6,7 +6,7 @@ foreach (var comment in Model) { %>
      <%: Html.LinkOrDefault(comment.Record.UserName, comment.Record.SiteName, new { rel = "nofollow" })%> <%-- todo: (heskew) need comment permalink --%> - said <%: Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault()), "#")%> + said <%: Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault(), T).ToString(), "#")%>
      <%-- todo: (heskew) comment text needs processing depending on comment markup style --%> diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Details.aspx b/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Details.aspx index 2d1da670f..1a0afea24 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Details.aspx +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Details.aspx @@ -12,9 +12,9 @@ <%: T("ContentType:")%> <%=Model.Item.ContentItem.ContentType %>
      <%: T("DisplayText:")%> - <%=Html.ItemDisplayText(Model.Item) %>
      + <%: Html.ItemDisplayText(Model.Item) %>
      <%: T("Links:")%> - <%=Html.ItemDisplayLink(T("view").ToString(), Model.Item) %> <%=Html.ItemEditLink(T("edit").ToString(), Model.Item) %> + <%: Html.ItemDisplayLink(T("view").ToString(), Model.Item) %> <%: Html.ItemEditLink(T("edit").ToString(), Model.Item) %>

      <%: T("Content Item Parts")%>

        diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Index.aspx b/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Index.aspx index 7fce3220f..bf06d24a7 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Index.aspx +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Views/Content/Index.aspx @@ -12,8 +12,8 @@ <%foreach(var item in Model.Items.OrderBy(x=>x.Id)){%>
      • <%: Html.ActionLink(T("{0}: {1}", item.Id, item.ContentType).ToString(), "details", "content", new{item.Id},new{}) %> - <%=Html.ItemDisplayLink(T("view").ToString(), item) %> - <%=Html.ItemEditLink(T("edit").ToString(), item) %> + <%: Html.ItemDisplayLink(T("view").ToString(), item) %> + <%: Html.ItemEditLink(T("edit").ToString(), item) %>
      • <%}%>
      \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/Add.aspx b/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/Add.aspx index 483046d6e..5acd5bee4 100644 --- a/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/Add.aspx +++ b/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/Add.aspx @@ -18,7 +18,7 @@ <% using (Html.BeginForm("Add", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" })) { %> <%: Html.ValidationSummary() %>
      - + " size="64"/> <%: T("After your files have been uploaded, you can edit the titles and descriptions.")%> diff --git a/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/EditMedia.aspx b/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/EditMedia.aspx index ac6692b75..beabd31c2 100644 --- a/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/EditMedia.aspx +++ b/src/Orchard.Web/Modules/Orchard.Media/Views/Admin/EditMedia.aspx @@ -24,11 +24,11 @@ Html.RegisterStyle("admin.css"); %>
      <%-- todo: make these real (including markup) --%>
      - + - + - +
      @@ -61,9 +61,9 @@ Html.RegisterStyle("admin.css"); %>
      " class="previewImage" alt="<%: Model.Caption %>" />
        <%-- todo: make these real (including markup) -
      • -
      • -
      • +
      • +
      • +
      • ", ResolveUrl("~/Media/" + Model.RelativePath + "/" + Model.Name), 500, 375, Model.Caption) %>" /> diff --git a/src/Orchard.Web/Modules/Orchard.MetaData/Views/Admin/ContentTypeList.ascx b/src/Orchard.Web/Modules/Orchard.MetaData/Views/Admin/ContentTypeList.ascx index f1a53e532..e82bf6ae3 100644 --- a/src/Orchard.Web/Modules/Orchard.MetaData/Views/Admin/ContentTypeList.ascx +++ b/src/Orchard.Web/Modules/Orchard.MetaData/Views/Admin/ContentTypeList.ascx @@ -25,7 +25,7 @@ %> - <%= Html.ActionLink(item.Name, "ContentTypeList", new {id=item.Name})%> + <%: Html.ActionLink(item.Name, "ContentTypeList", new {id=item.Name})%> @@ -60,7 +60,7 @@ using (Html.BeginFormAntiForgeryPost(Url.Action("Save",new {id=Model.SelectedCon " type="checkbox" /><%}%> - <%= Html.Encode(item.Name)%> + <%: item.Name%> diff --git a/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.ascx b/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.ascx index bf4b9d41d..191997e39 100644 --- a/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.ascx +++ b/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.ascx @@ -33,7 +33,7 @@ featureClassName += " first"; if (feature == features.Last()) featureClassName += " last"; %> -
      • "> +
      • ">

        <%:feature.Descriptor.Name %>

        diff --git a/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Index.ascx b/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Index.ascx index 2c700a65a..f8ecde915 100644 --- a/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Index.ascx +++ b/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Index.ascx @@ -15,7 +15,7 @@

        <%: module.Description %>

        <% } %>
          -
        • <%=T("Features: {0}", string.Join(", ", module.Features.Select(f => Html.Link(f.Name, string.Format("{0}#{1}", Url.Action("features", new { area = "Orchard.Modules" }), f.Name.AsFeatureId(n => T(n)))).ToString()).OrderBy(s => s).ToArray())) %>
        • +
        • <%: T("Features: {0}", string.Join(", ", module.Features.Select(f => Html.Link(f.Name, string.Format("{0}#{1}", Url.Action("features", new { area = "Orchard.Modules" }), f.Name.AsFeatureId(n => T(n)))).ToString()).OrderBy(s => s).ToArray())) %>
        •  | <%: T("Author: {0}", !string.IsNullOrEmpty(module.Author) ? module.Author : (new []{"Bradley", "Bertrand", "Renaud", "Suha", "Sebastien", "Jon", "Nathan", "Erik"})[(module.DisplayName.Length + (new Random()).Next()) % 7]) %>
        • <%-- very efficient, I know --%>
        •  | <%: T("Website: {0}", !string.IsNullOrEmpty(module.HomePage) ? module.HomePage : T("http://orchardproject.net").ToString())%>
        diff --git a/src/Orchard.Web/Modules/Orchard.Pages/Views/Admin/List.aspx b/src/Orchard.Web/Modules/Orchard.Pages/Views/Admin/List.aspx index 56a306e3e..bf98ae930 100644 --- a/src/Orchard.Web/Modules/Orchard.Pages/Views/Admin/List.aspx +++ b/src/Orchard.Web/Modules/Orchard.Pages/Views/Admin/List.aspx @@ -5,27 +5,27 @@ <%@ Import Namespace="Orchard.Pages.ViewModels"%><% Html.RegisterStyle("admin.css"); %> -

        <%=Html.TitleForPage(T("Manage Pages").ToString())%>

        +

        <%: Html.TitleForPage(T("Manage Pages").ToString())%>

        <%-- todo: Add helper text here when ready.

        <%: T("Possible text about setting up a page goes here.")%>

        --%>
        <%: Html.ActionLink(T("Add a page").ToString(), "Create", new { }, new { @class = "button primaryAction" })%>
        <% using (Html.BeginFormAntiForgeryPost()) { %> <%: Html.ValidationSummary()%>
        - + <%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.None, T("Choose action...").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.PublishNow, T("Publish Now").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.Unpublish, T("Unpublish").ToString())%> + <%: Html.SelectOption(Model.Options.BulkAction, PagesBulkAction.Delete, T("Remove").ToString())%> " />
        - + <%: Html.SelectOption(Model.Options.Filter, PagesFilter.All, T("All Pages").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, PagesFilter.Published, T("Published Pages").ToString())%> + <%: Html.SelectOption(Model.Options.Filter, PagesFilter.Offline, T("Offline Pages").ToString())%> "/>
        @@ -37,8 +37,8 @@ using (Html.BeginFormAntiForgeryPost()) { %>
      • - - + +

        <%: Html.ActionLink(pageEntry.Page.Title, "Edit", new { id = pageEntry.PageId })%>

        diff --git a/src/Orchard.Web/Modules/Orchard.Pages/Views/DisplayTemplates/Items/Pages.Page.Summary.ascx b/src/Orchard.Web/Modules/Orchard.Pages/Views/DisplayTemplates/Items/Pages.Page.Summary.ascx index 0cc265efb..502fa2fa4 100644 --- a/src/Orchard.Web/Modules/Orchard.Pages/Views/DisplayTemplates/Items/Pages.Page.Summary.ascx +++ b/src/Orchard.Web/Modules/Orchard.Pages/Views/DisplayTemplates/Items/Pages.Page.Summary.ascx @@ -3,7 +3,7 @@ <%@ Import Namespace="Orchard.ContentManagement"%> <%@ Import Namespace="Orchard.Core.Common.Models"%> <%@ Import Namespace="Orchard.Mvc.ViewModels"%> -

        "><%: Model.Item.Title %>

        +

        "><%: Model.Item.Title %>

        <% Html.Zone("primary", ":manage :metadata"); %>
        \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Pages/Views/EditorTemplates/Items/Pages.Page.ascx b/src/Orchard.Web/Modules/Orchard.Pages/Views/EditorTemplates/Items/Pages.Page.ascx index 7bb793594..b1f9c64b3 100644 --- a/src/Orchard.Web/Modules/Orchard.Pages/Views/EditorTemplates/Items/Pages.Page.ascx +++ b/src/Orchard.Web/Modules/Orchard.Pages/Views/EditorTemplates/Items/Pages.Page.ascx @@ -13,7 +13,7 @@ "/><% //TODO: (erikpo) In the future, remove the HasPublished check so the user can delete the content item from here if the choose to if (Model.Item.HasDraft && Model.Item.HasPublished) { %> - <%=Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Pages", Controller = "Admin", id = Model.Item.Id}), new {@class = "button"})%><% + <%: Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Pages", Controller = "Admin", id = Model.Item.Id}), new {@class = "button"})%><% } %>
      diff --git a/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Items/Sandbox.Page.ascx b/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Items/Sandbox.Page.ascx index 5e7a09ce1..6683a7fc9 100644 --- a/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Items/Sandbox.Page.ascx +++ b/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Items/Sandbox.Page.ascx @@ -8,7 +8,7 @@
      <% Html.Zone("metatop"); %>
      - <%=Html.ItemEditLink(T("Edit this page").ToString(), Model.Item) %> + <%: Html.ItemEditLink(T("Edit this page").ToString(), Model.Item) %> <%: Html.ActionLink(T("Return to list").ToString(), "index") %> <% Html.Zone("actions"); %>
      diff --git a/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Parts/Sandbox.Page.Title.ascx b/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Parts/Sandbox.Page.Title.ascx index df84c03ff..87b976b48 100644 --- a/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Parts/Sandbox.Page.Title.ascx +++ b/src/Orchard.Web/Modules/Orchard.Sandbox/Views/DisplayTemplates/Parts/Sandbox.Page.Title.ascx @@ -1,3 +1,3 @@ <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.ContentManagement"%> -

      <%=Html.ItemDisplayLink(Model) %>

      \ No newline at end of file +

      <%: Html.ItemDisplayLink(Model) %>

      diff --git a/src/Orchard.Web/Modules/Orchard.Search/Views/Admin/Index.ascx b/src/Orchard.Web/Modules/Orchard.Search/Views/Admin/Index.ascx index e7202166b..85a9b9950 100644 --- a/src/Orchard.Web/Modules/Orchard.Search/Views/Admin/Index.ascx +++ b/src/Orchard.Web/Modules/Orchard.Search/Views/Admin/Index.ascx @@ -1,16 +1,16 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Mvc.Html" %><% Html.RegisterStyle("admin.css"); %> -

      <%=Html.TitleForPage(T("Search Index Management").ToString()) %>

      <% +

      <%: Html.TitleForPage(T("Search Index Management").ToString()) %>

      <% using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Search"})) { %>
      -

      <%=T("The search index was last updated {0}. ", Html.DateTimeRelative(Model.IndexUpdatedUtc, T))%>

      - <%=Html.AntiForgeryTokenOrchard() %> +

      <%: T("The search index was last updated {0}. ", Html.DateTimeRelative(Model.IndexUpdatedUtc, T))%>

      + <%: Html.AntiForgeryTokenOrchard() %>
      <% } using (Html.BeginForm("rebuild", "admin", FormMethod.Post, new {area = "Orchard.Search"})) { %>
      -

      <%=T("Rebuild the search index for a fresh start. ") %>

      - <%=Html.AntiForgeryTokenOrchard() %> +

      <%: T("Rebuild the search index for a fresh start. ") %>

      + <%: Html.AntiForgeryTokenOrchard() %>
      <% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Search/Views/Search/Index.ascx b/src/Orchard.Web/Modules/Orchard.Search/Views/Search/Index.ascx index 09e0fa0c3..bd0456e22 100644 --- a/src/Orchard.Web/Modules/Orchard.Search/Views/Search/Index.ascx +++ b/src/Orchard.Web/Modules/Orchard.Search/Views/Search/Index.ascx @@ -1,17 +1,17 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Mvc.Html" %><% Html.RegisterStyle("search.css"); %> -

      <%=Html.TitleForPage(T("Search").Text)%>

      <% +

      <%: Html.TitleForPage(T("Search").Text)%>

      <% Html.Zone("search"); if (!string.IsNullOrWhiteSpace(Model.Query)) { if (Model.PageOfResults.Count() == 0) { %> -

      <%=T("zero results") %>

      <% +

      <%: T("zero results") %>

      <% } else { %> -

      <%=T("{0} - {1} of {2} results", Model.PageOfResults.StartPosition, Model.PageOfResults.EndPosition, Model.PageOfResults.TotalItemCount)%>

      <% +

      <%: T("{0} - {1} of {2} results", Model.PageOfResults.StartPosition, Model.PageOfResults.EndPosition, Model.PageOfResults.TotalItemCount)%>

      <% } } if (Model.PageOfResults != null && Model.PageOfResults.Count() > 0) { %> <%: Html.UnorderedList(Model.PageOfResults, (r, i) => Html.DisplayForItem(r.Content).ToHtmlString() , "search-results contentItems") %> -<%=Html.Pager(Model.PageOfResults, Model.PageOfResults.PageNumber, Model.DefaultPageSize, new {q = Model.Query}) %><% +<%: Html.Pager(Model.PageOfResults, Model.PageOfResults.PageNumber, Model.DefaultPageSize, new {q = Model.Query}) %><% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Search/Views/SearchForm.ascx b/src/Orchard.Web/Modules/Orchard.Search/Views/SearchForm.ascx index b1df13ea6..8c66dc2ec 100644 --- a/src/Orchard.Web/Modules/Orchard.Search/Views/SearchForm.ascx +++ b/src/Orchard.Web/Modules/Orchard.Search/Views/SearchForm.ascx @@ -2,7 +2,7 @@ <%@ Import Namespace="Orchard.Search.ViewModels" %><% using(Html.BeginForm("index", "search", new { area = "Orchard.Search" }, FormMethod.Get, new { @class = "search" })) { %>
      - <%=Html.TextBox("q", Model.Query) %> - + <%: Html.TextBox("q", Model.Query) %> +
      <% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.ascx b/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.ascx index 941f95942..7db91a3c0 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.ascx +++ b/src/Orchard.Web/Modules/Orchard.Setup/Views/Setup/Index.ascx @@ -1,6 +1,6 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Setup.ViewModels"%> -

      <%: Html.TitleForPage(T("Get Started"))%>

      +

      <%: Html.TitleForPage(T("Get Started").ToString())%>

      <% using (Html.BeginFormAntiForgeryPost()) { %> <%: Html.ValidationSummary() %> diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.aspx b/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.aspx index 855e7a634..9a8101ce4 100644 --- a/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.aspx +++ b/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.aspx @@ -5,9 +5,9 @@ <%: Html.ValidationSummary() %>
      - + <%: Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.None, T("Choose action...").ToString())%> + <%: Html.SelectOption(Model.BulkAction, TagAdminIndexBulkAction.Delete, T("Remove").ToString())%> " />
      @@ -33,8 +33,8 @@ %> - - + + <%: Html.ActionLink(Html.Encode(tagEntry.Tag.TagName), "Search", new {id = tagEntry.Tag.Id}) %> diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Search.aspx b/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Search.aspx index a63547db3..f41688f50 100644 --- a/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Search.aspx +++ b/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Search.aspx @@ -15,8 +15,8 @@ <% foreach (var contentItem in Model.Contents) { %> - <%=Html.ItemDisplayText(contentItem) %> - <%=Html.ItemDisplayLink(contentItem) %> + <%: Html.ItemDisplayText(contentItem) %> + <%: Html.ItemDisplayLink(contentItem) %> <% } %> \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Views/Home/Search.ascx b/src/Orchard.Web/Modules/Orchard.Tags/Views/Home/Search.ascx index 5aea18f3c..69322cdc9 100644 --- a/src/Orchard.Web/Modules/Orchard.Tags/Views/Home/Search.ascx +++ b/src/Orchard.Web/Modules/Orchard.Tags/Views/Home/Search.ascx @@ -1,5 +1,5 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Tags.ViewModels"%> <% Html.AddTitleParts(T("Tags").ToString(), T("Contents tagged with {0}", Model.TagName).ToString()); %> -

      <%=T("Contents tagged with {0}", Html.Encode(Model.TagName)) %>

      +

      <%: T("Contents tagged with {0}", Html.Encode(Model.TagName)) %>

      <%: Html.UnorderedList(Model.Items, (c, i) => Html.DisplayForItem(c).ToHtmlString(), "taggedPosts contentItems") %> diff --git a/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.aspx b/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.aspx index acf81f455..d380f6256 100644 --- a/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.aspx +++ b/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/Index.aspx @@ -9,7 +9,7 @@ } else { %>

      <%: T("Current Theme")%> - <%: Model.CurrentTheme.DisplayName %>

      - <%=Html.Image(Html.ThemePath(Model.CurrentTheme, "/Theme.png"), Html.Encode(Model.CurrentTheme.DisplayName), new { @class = "themePreviewImage" })%> + <%: Html.Image(Html.ThemePath(Model.CurrentTheme, "/Theme.png"), Html.Encode(Model.CurrentTheme.DisplayName), new { @class = "themePreviewImage" })%>
      <%: T("By") %> <%: Model.CurrentTheme.Author %>

      @@ -27,7 +27,7 @@ %>

    • <%: theme.DisplayName %>

      - <%=Html.Image(Html.ThemePath(theme, "/Theme.png"), Html.Encode(theme.DisplayName), null)%> + <%: Html.Image(Html.ThemePath(theme, "/Theme.png"), Html.Encode(theme.DisplayName), null)%> <% using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) { %> <%: Html.Hidden("themeName", theme.ThemeName)%> diff --git a/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/ThemePreview.ascx b/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/ThemePreview.ascx index 5fc3ae8e3..dcbe48351 100644 --- a/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/ThemePreview.ascx +++ b/src/Orchard.Web/Modules/Orchard.Themes/Views/Admin/ThemePreview.ascx @@ -58,9 +58,9 @@ html.dyn #themepreview button.preview { display:none; }
      <% using(Html.BeginFormAntiForgeryPost(Url.Action("Preview", new{Controller="Admin", Area="Orchard.Themes"}), FormMethod.Post, new { @class = "inline" })) { %>
      - <%=T("You are previewing: ")%> + <%: T("You are previewing: ")%> <%: Html.Hidden("ReturnUrl", Context.Request.RawUrl)%> - <%=Html.DropDownList("ThemeName", Model.Themes, new {onChange = "this.form.submit();"})%> + <%: Html.DropDownList("ThemeName", Model.Themes, new {onChange = "this.form.submit();"})%> diff --git a/src/Orchard.Web/Modules/Orchard.Themes/Views/User.ascx b/src/Orchard.Web/Modules/Orchard.Themes/Views/User.ascx index 47cdceaa0..ef473bf37 100644 --- a/src/Orchard.Web/Modules/Orchard.Themes/Views/User.ascx +++ b/src/Orchard.Web/Modules/Orchard.Themes/Views/User.ascx @@ -2,7 +2,7 @@ <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
      <% if (Request.IsAuthenticated) { %> - <%= T("Welcome, {0}!", Page.User.Identity.Name) %> + <%: T("Welcome, {0}!", Page.User.Identity.Name) %> <%: Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })%>  | <%: Html.ActionLink("Admin", "Index", new {Area = "Dashboard", Controller = "Admin"})%> <% } else { %> diff --git a/src/Orchard.Web/Modules/TinyMce/Views/EditorTemplates/TinyMceTextEditor.ascx b/src/Orchard.Web/Modules/TinyMce/Views/EditorTemplates/TinyMceTextEditor.ascx index ef9fc941a..b3280c449 100644 --- a/src/Orchard.Web/Modules/TinyMce/Views/EditorTemplates/TinyMceTextEditor.ascx +++ b/src/Orchard.Web/Modules/TinyMce/Views/EditorTemplates/TinyMceTextEditor.ascx @@ -1,7 +1,7 @@ <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> <%@ Import Namespace="Orchard.Core.Common.ViewModels"%> <% Html.RegisterScript("tiny_mce.js"); %> -<%=Html.TextArea("Text", Model.Text, 25, 80, new { @class = "html" }) %><% +<%: Html.TextArea("Text", Model.Text, 25, 80, new { @class = "html" }) %><% using (this.Capture("end-of-page-scripts")) {%> <% }%> \ No newline at end of file diff --git a/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx b/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx index 71a1a6030..cfa18d826 100644 --- a/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx +++ b/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx @@ -4,5 +4,5 @@ <%@ Import Namespace="Orchard.Blogs.Models"%>

      <%: Html.Link(Model.Item.Name, Url.Blog(Model.Item.Slug)) %>

      - +

      <%: Model.Item.Description %>

      diff --git a/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx b/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx index 8f5fa60d4..dc79bf381 100644 --- a/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx +++ b/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx @@ -4,7 +4,7 @@ <%@ Import Namespace="Orchard.Blogs.Models"%> <%Model.Zones.AddRenderPartial("zonetest", "ZoneTest", Model); %>

      <%: Html.Link(Model.Item.Title, Url.BlogPost(Model.Item)) %>

      -
      <%=Html.PublishedState(Model.Item, T) %> | <%Html.Zone("meta");%>
      +
      <%: Html.PublishedState(Model.Item, T) %> | <%Html.Zone("meta");%>
      <% Html.Zone("primary"); %>
      \ No newline at end of file diff --git a/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx b/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx index 0cf40e77e..e40fb3678 100644 --- a/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx +++ b/src/Orchard.Web/Themes/Classic/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx @@ -7,7 +7,7 @@ What I have in this template is as close as I can get at the moment. --%> <%-- --%> diff --git a/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx b/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx index 71a1a6030..cfa18d826 100644 --- a/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx +++ b/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.Blog.Summary.ascx @@ -4,5 +4,5 @@ <%@ Import Namespace="Orchard.Blogs.Models"%>

      <%: Html.Link(Model.Item.Name, Url.Blog(Model.Item.Slug)) %>

      - +

      <%: Model.Item.Description %>

      diff --git a/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx b/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx index 8f5fa60d4..dc79bf381 100644 --- a/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx +++ b/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.Summary.ascx @@ -4,7 +4,7 @@ <%@ Import Namespace="Orchard.Blogs.Models"%> <%Model.Zones.AddRenderPartial("zonetest", "ZoneTest", Model); %>

      <%: Html.Link(Model.Item.Title, Url.BlogPost(Model.Item)) %>

      -
      <%=Html.PublishedState(Model.Item, T) %> | <%Html.Zone("meta");%>
      +
      <%: Html.PublishedState(Model.Item, T) %> | <%Html.Zone("meta");%>
      <% Html.Zone("primary"); %>
      \ No newline at end of file diff --git a/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx b/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx index 0cf40e77e..e40fb3678 100644 --- a/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx +++ b/src/Orchard.Web/Themes/ClassicDark/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx @@ -7,7 +7,7 @@ What I have in this template is as close as I can get at the moment. --%> <%-- --%> diff --git a/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Items/Blogs.BlogPost.ListByArchive.ascx b/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Items/Blogs.BlogPost.ListByArchive.ascx index 1166d49d9..5f42b0f35 100644 --- a/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Items/Blogs.BlogPost.ListByArchive.ascx +++ b/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Items/Blogs.BlogPost.ListByArchive.ascx @@ -4,7 +4,7 @@

      <%: Html.TitleForPage(T("Archives").ToString(), Model.ArchiveData.Year.ToString(), Model.ArchiveData.Month > 0 ? new DateTime(Model.ArchiveData.Year, Model.ArchiveData.Month, 1).ToString("MMMM") : null, Model.ArchiveData.Day > 0 ? Model.ArchiveData.Day.ToString() : null)%>

      -<%=T("Archives").ToString() +<%: T("Archives").ToString() %> / <%: Html.Link(Model.ArchiveData.Year.ToString(), Url.BlogArchiveYear(Model.Blog.Slug, Model.ArchiveData.Year)) %><%=Model.ArchiveData.Month > 0 ? string.Format(" / {0}", Html.Link(Model.ArchiveData.ToDateTime().ToString("MMMM"), Url.BlogArchiveMonth(Model.Blog.Slug, Model.ArchiveData.Year, Model.ArchiveData.Month))) : "" %><%=Model.ArchiveData.Day > 0 ? string.Format(" / {0}", Html.Link(Model.ArchiveData.Day.ToString(), Url.BlogArchiveDay(Model.Blog.Slug, Model.ArchiveData.Year, Model.ArchiveData.Month, Model.ArchiveData.Day))) : "" diff --git a/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Parts/Comments.HasComments.ascx b/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Parts/Comments.HasComments.ascx index 37a92c0c5..ad5ee5532 100644 --- a/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Parts/Comments.HasComments.ascx +++ b/src/Orchard.Web/Themes/Contoso/Views/DisplayTemplates/Parts/Comments.HasComments.ascx @@ -16,7 +16,7 @@ if (Model.CommentsActive == false) { } else if(!Request.IsAuthenticated && !AuthorizedFor(Permissions.AddComment)) { %>

      <%: T("Add a Comment") %>

      -

      <%=T("You must {0} to comment.", Html.ActionLink(T("log on").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = string.Format("{0}#addacomment", Context.Request.RawUrl) }))%>

      <% +

      <%: T("You must {0} to comment.", Html.ActionLink(T("log on").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = string.Format("{0}#addacomment", Context.Request.RawUrl) }))%>

      <% } else { %> <% using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, FormMethod.Post, new { @class = "comment-form" })) { %> @@ -46,7 +46,7 @@ else { %> }%>
      - +
      diff --git a/src/Orchard.Web/Themes/Contoso/Views/Layout.HomePage.ascx b/src/Orchard.Web/Themes/Contoso/Views/Layout.HomePage.ascx index 831aee24a..7fb52ea30 100644 --- a/src/Orchard.Web/Themes/Contoso/Views/Layout.HomePage.ascx +++ b/src/Orchard.Web/Themes/Contoso/Views/Layout.HomePage.ascx @@ -23,7 +23,7 @@
      <%-- Init jQuery Slider --%> - +