mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Replaced Html.Encode with the new <%: %> syntax for auto encoding
--HG-- branch : dev
This commit is contained in:
@@ -6,15 +6,15 @@
|
||||
%><p><%=_Encoded("There is no current theme in the application. The built-in theme will be used.")
|
||||
%><br /><%=Html.ActionLink(T("Install a new Theme").ToString(), "Install") %></p><%
|
||||
} else {
|
||||
%><h3><%=_Encoded("Current Theme")%> - <%=Html.Encode(Model.CurrentTheme.DisplayName) %></h3>
|
||||
%><h3><%=_Encoded("Current Theme")%> - <%: Model.CurrentTheme.DisplayName %></h3>
|
||||
|
||||
<%=Html.Image(Html.ThemePath(Model.CurrentTheme, "/Theme.png"), Html.Encode(Model.CurrentTheme.DisplayName), new { @class = "themePreviewImage" })%>
|
||||
<h5><%=_Encoded("By") %> <%=Html.Encode(Model.CurrentTheme.Author) %></h5>
|
||||
<h5><%=_Encoded("By") %> <%: Model.CurrentTheme.Author %></h5>
|
||||
|
||||
<p>
|
||||
<%=_Encoded("Version:") %> <%=Html.Encode(Model.CurrentTheme.Version) %><br />
|
||||
<%=Html.Encode(Model.CurrentTheme.Description) %><br />
|
||||
<%=Html.Encode(Model.CurrentTheme.HomePage) %>
|
||||
<%=_Encoded("Version:") %> <%: Model.CurrentTheme.Version %><br />
|
||||
<%: Model.CurrentTheme.Description %><br />
|
||||
<%: Model.CurrentTheme.HomePage %>
|
||||
</p>
|
||||
<%=Html.ActionLink(T("Install a new Theme").ToString(), "Install", null, new { @class = "button primaryAction" })%>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
if (Model.CurrentTheme == null || theme.ThemeName != Model.CurrentTheme.ThemeName) {
|
||||
%> <li>
|
||||
<div>
|
||||
<h3><%=Html.Encode(theme.DisplayName) %></h3>
|
||||
<h3><%: theme.DisplayName %></h3>
|
||||
<%=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)%>
|
||||
@@ -35,11 +35,11 @@
|
||||
<%=Html.Hidden("themeName", theme.ThemeName)%>
|
||||
<button type="submit" title="<%=_Encoded("Preview") %>"><%=_Encoded("Preview") %></button>
|
||||
<% } %>
|
||||
<h5><%=_Encoded("By") %> <%=Html.Encode(theme.Author) %></h5>
|
||||
<h5><%=_Encoded("By") %> <%: theme.Author %></h5>
|
||||
<p>
|
||||
<%=_Encoded("Version:") %> <%=Html.Encode(theme.Version) %><br />
|
||||
<%=Html.Encode(theme.Description) %><br />
|
||||
<%=Html.Encode(theme.HomePage) %>
|
||||
<%=_Encoded("Version:") %> <%: theme.Version %><br />
|
||||
<%: theme.Description %><br />
|
||||
<%: theme.HomePage %>
|
||||
</p>
|
||||
<% using (Html.BeginFormAntiForgeryPost(Url.Action("Uninstall"), FormMethod.Post, new { @class = "inline link" })) { %>
|
||||
<%=Html.Hidden("themeName", theme.ThemeName)%>
|
||||
|
@@ -1,3 +1,3 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<div id="title"><%=Html.Encode(Html.SiteName()) %></div>
|
||||
<div id="title"><%: Html.SiteName() %></div>
|
||||
|
@@ -6,5 +6,5 @@
|
||||
: item.Type == NotifyType.Warning
|
||||
? "warning"
|
||||
: "info"; %>
|
||||
<div class="<%=className %> message"><%=Html.Encode(item.Message) %></div>
|
||||
<div class="<%=className %> message"><%: item.Message %></div>
|
||||
<% } %>
|
Reference in New Issue
Block a user