mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Replaced Html.Encode with the new <%: %> syntax for auto encoding
--HG-- branch : dev
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Azure.Web</RootNamespace>
|
||||
<AssemblyName>Orchard.Azure.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@@ -10,7 +10,7 @@
|
||||
<%=Html.TextBoxFor(m => m.Title, new { @class = "large text" }) %>
|
||||
</fieldset>
|
||||
<fieldset class="permalink">
|
||||
<label class="sub" for="Slug"><%=_Encoded("Permalink")%><br /><span><%=Html.Encode(Request.ToRootUrlString())%>/<%=Html.Encode(Model.RoutableAspect.ContentItemBasePath) %></span></label>
|
||||
<label class="sub" for="Slug"><%=_Encoded("Permalink")%><br /><span><%: Request.ToRootUrlString() %>/<%: Model.RoutableAspect.ContentItemBasePath %></span></label>
|
||||
<span><%=Html.TextBoxFor(m => m.Slug, new { @class = "text" })%></span>
|
||||
</fieldset>
|
||||
<% using (this.Capture("end-of-page-scripts")) { %>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Futures.Widgets</RootNamespace>
|
||||
<AssemblyName>Futures.Widgets</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Blogs</RootNamespace>
|
||||
<AssemblyName>Orchard.Blogs</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -3,5 +3,5 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h2><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h2>
|
||||
<% if (!string.IsNullOrEmpty(Model.Item.Description)) { %><p><%=Html.Encode(Model.Item.Description) %></p><% } %>
|
||||
<% if (!string.IsNullOrEmpty(Model.Item.Description)) { %><p><%: Model.Item.Description %></p><% } %>
|
||||
<div class="blog metadata"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%> | <%Html.Zone("meta");%></div>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
<h3><%=Html.Link(Html.Encode(Model.Item.Name), Url.BlogForAdmin(Model.Item.Slug)) %></h3>
|
||||
<p><% Html.Zone("meta");%></p>
|
||||
<%--<p>[list of authors] [modify blog access]</p>--%>
|
||||
<p><%=Html.Encode(Model.Item.Description) %></p>
|
||||
<p><%: Model.Item.Description %></p>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Blog>" %>
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<div class="blogdescription">
|
||||
<p><%=Html.Encode(Model.Description) %></p>
|
||||
<p><%: Model.Description %></p>
|
||||
</div>
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Comments</RootNamespace>
|
||||
<AssemblyName>Orchard.Comments</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -77,10 +77,10 @@
|
||||
else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%=_Encoded("Pending") %><% }
|
||||
else { %><%=_Encoded("Approved") %><% } %>
|
||||
</td>
|
||||
<td><%=Html.Encode(commentEntry.Comment.UserName) %></td>
|
||||
<td><%: commentEntry.Comment.UserName %></td>
|
||||
<td>
|
||||
<% if (commentEntry.Comment.CommentText != null) {%>
|
||||
<%=Html.Encode(commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText) %><%=_Encoded(" ...") %>
|
||||
<%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%=_Encoded(" ...") %>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %></td>
|
||||
|
@@ -7,21 +7,21 @@
|
||||
<fieldset class="who">
|
||||
<div>
|
||||
<label for="Name"><%=_Encoded("Name") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%=Html.Encode(Model.Name) %>" />
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="Email"><%=_Encoded("Email") %></label>
|
||||
<input id="Email" class="text" name="Email" type="text" value="<%=Html.Encode(Model.Email)%>" />
|
||||
<input id="Email" class="text" name="Email" type="text" value="<%: Model.Email %>" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="SiteName"><%=_Encoded("Url") %></label>
|
||||
<input id="SiteName" class="text" name="SiteName" type="text" value="<%=Html.Encode(Model.SiteName) %>" />
|
||||
<input id="SiteName" class="text" name="SiteName" type="text" value="<%: Model.SiteName %>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="what">
|
||||
<div>
|
||||
<label for="CommentText"><%=_Encoded("Body") %></label>
|
||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"><%=Html.Encode(Model.CommentText) %></textarea>
|
||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"><%: Model.CommentText %></textarea>
|
||||
<input id="CommentId" name="Id" type="hidden" value="<%=Model.Id %>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
@@ -60,11 +60,11 @@
|
||||
<td><% if (commentEntry.Comment.Status == CommentStatus.Spam) { %><%=_Encoded("Spam") %><% }
|
||||
else if (commentEntry.Comment.Status == CommentStatus.Pending) { %><%=_Encoded("Pending") %><% }
|
||||
else { %><%=_Encoded("Approved") %><% } %></td>
|
||||
<td><%=Html.Encode(commentEntry.Comment.UserName) %></td>
|
||||
<td><%: commentEntry.Comment.UserName %></td>
|
||||
<td>
|
||||
<% if (commentEntry.Comment.CommentText != null) {%>
|
||||
<%-- todo: (heskew) same text processing comment as on the public display, also need to use the ellipsis character instead of ... --%>
|
||||
<%=Html.Encode(commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText) %><%=_Encoded(" ...") %>
|
||||
<%: commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText %><%=_Encoded(" ...") %>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%=Html.DateTime(commentEntry.Comment.CommentDateUtc.GetValueOrDefault()) %></td>
|
||||
|
@@ -10,7 +10,7 @@ foreach (var comment in Model) { %>
|
||||
</div>
|
||||
<div class="text">
|
||||
<%-- todo: (heskew) comment text needs processing depending on comment markup style --%>
|
||||
<p><%=Html.Encode(comment.Record.CommentText)%></p>
|
||||
<p><%: comment.Record.CommentText %></p>
|
||||
</div>
|
||||
</li><%
|
||||
} %>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.DevTools</RootNamespace>
|
||||
<AssemblyName>Orchard.DevTools</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -20,10 +20,10 @@
|
||||
<ul>
|
||||
<%foreach (var partType in Model.PartTypes.OrderBy(x => x.Name)) {%>
|
||||
<li><span style="font-weight: bold;">
|
||||
<%if (partType.IsGenericType) {%><%=Html.Encode(partType.Name +" "+partType.GetGenericArguments().First().Name)%>
|
||||
<%=Html.Encode(" (" + partType.GetGenericArguments().First().Namespace + ")")%><%}
|
||||
else {%><%=Html.Encode(partType.Name)%>
|
||||
<%=Html.Encode( " (" + partType.Namespace + ")")%><%
|
||||
<%if (partType.IsGenericType) {%><%: partType.Name +" "+partType.GetGenericArguments().First().Name %>
|
||||
<%: " (" + partType.GetGenericArguments().First().Namespace + ")" %><%}
|
||||
else {%><%: partType.Name %>
|
||||
<%: " (" + partType.Namespace + ")" %><%
|
||||
}
|
||||
|
||||
%></span>
|
||||
@@ -31,8 +31,8 @@
|
||||
<%foreach (var prop in partType.GetProperties().Where(x => x.DeclaringType == partType)) {
|
||||
var value = prop.GetValue(Model.Locate(partType), null);%>
|
||||
<li style="font-weight: normal;">
|
||||
<%=Html.Encode(prop.Name) %>:
|
||||
<%=Html.Encode(value) %>
|
||||
<%: prop.Name %>:
|
||||
<%: value %>
|
||||
<%var valueItem = value as ContentItem;
|
||||
if (valueItem == null && value is IContent) {
|
||||
valueItem = (value as IContent).ContentItem;
|
||||
@@ -46,7 +46,7 @@
|
||||
else if (typeof(IEnumerable).IsAssignableFrom(prop.PropertyType)) {
|
||||
foreach (var item in value as IEnumerable) {
|
||||
%>
|
||||
<li><%=Html.Encode(item.GetType().Name) %>:<%=Html.Encode(item) %></li>
|
||||
<li><%: item.GetType().Name %>:<%: item %></li>
|
||||
<%
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
else {%>
|
||||
<%foreach (var prop2 in value.GetType().GetProperties().Where(x => x.GetIndexParameters().Count() == 0)) {%>
|
||||
<li>
|
||||
<%=Html.Encode(prop2.Name)%>
|
||||
<%=Html.Encode(prop2.GetValue(value, null))%></li>
|
||||
<%: prop2.Name %>
|
||||
<%: prop2.GetValue(value, null) %></li>
|
||||
<%} %>
|
||||
<%} %>
|
||||
</ul>
|
||||
@@ -71,13 +71,13 @@
|
||||
<ul>
|
||||
<%foreach (var display in Model.Displays) {%>
|
||||
<li><span style="font-weight: bold">
|
||||
<%=Html.Encode(display.Prefix)%></span>
|
||||
<%=Html.Encode(display.Model.GetType().Name)%>
|
||||
(<%=Html.Encode(display.Model.GetType().Namespace)%>)
|
||||
Template:<%=Html.Encode(display.TemplateName ?? "(null)")%>
|
||||
Prefix:<%=Html.Encode(display.Prefix ?? "(null)")%>
|
||||
Zone:<%=Html.Encode(display.ZoneName ?? "(null)")%>
|
||||
Position:<%=Html.Encode(display.Position ?? "(null)")%>
|
||||
<%: display.Prefix %></span>
|
||||
<%: display.Model.GetType().Name %>
|
||||
(<%: display.Model.GetType().Namespace %>)
|
||||
Template:<%: display.TemplateName ?? "(null)" %>
|
||||
Prefix:<%: display.Prefix ?? "(null)" %>
|
||||
Zone:<%: display.ZoneName ?? "(null)" %>
|
||||
Position:<%: display.Position ?? "(null)" %>
|
||||
<div style="margin-left: 20px; border: solid 1px black;">
|
||||
<%=Html.DisplayFor(x => display.Model, display.TemplateName, display.Prefix)%>
|
||||
</div>
|
||||
@@ -91,13 +91,13 @@
|
||||
<ul>
|
||||
<%foreach (var editor in Model.Editors) {%>
|
||||
<li><span style="font-weight: bold">
|
||||
<%=Html.Encode(editor.Prefix) %></span>
|
||||
<%=Html.Encode(editor.Model.GetType().Name) %>
|
||||
(<%=Html.Encode(editor.Model.GetType().Namespace) %>)
|
||||
Template:<%=Html.Encode(editor.TemplateName ?? "(null)")%>
|
||||
Prefix:<%=Html.Encode(editor.Prefix ?? "(null)")%>
|
||||
Zone:<%=Html.Encode(editor.ZoneName ?? "(null)")%>
|
||||
Position:<%=Html.Encode(editor.Position??"(null)") %>
|
||||
<%: editor.Prefix %></span>
|
||||
<%: editor.Model.GetType().Name %>
|
||||
(<%: editor.Model.GetType().Namespace %>)
|
||||
Template:<%: editor.TemplateName ?? "(null)" %>
|
||||
Prefix:<%: editor.Prefix ?? "(null)" %>
|
||||
Zone:<%: editor.ZoneName ?? "(null)" %>
|
||||
Position:<%: editor.Position??"(null)" %>
|
||||
<div style="margin-left: 20px; border: solid 1px black;">
|
||||
<%=Html.EditorFor(x=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
||||
</div>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<h2><%=_Encoded("Content Types")%></h2>
|
||||
<ul>
|
||||
<%foreach(var item in Model.Types.OrderBy(x=>x.Name)){%>
|
||||
<li><%=Html.Encode(item.Name) %></li>
|
||||
<li><%: item.Name %></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
<h2><%=_Encoded("Content Items")%></h2>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Media</RootNamespace>
|
||||
<AssemblyName>Orchard.Media</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -19,8 +19,8 @@
|
||||
<label for="pageTitle"><%=T("File Path <span> - multiple files must be in a zipped folder</span>")%></label>
|
||||
<input id="MediaItemPath" name="MediaItemPath" type="file" class="text" value="<%=_Encoded("Browse") %>" size="64"/>
|
||||
<span class="hint"><%=_Encoded("After your files have been uploaded, you can edit the titles and descriptions.")%></span>
|
||||
<input type="hidden" id="FolderName" name="FolderName" value="<%=Html.Encode(Model.FolderName) %>" />
|
||||
<input type="hidden" id="MediaPath" name="MediaPath" value="<%=Html.Encode(Model.MediaPath) %>" />
|
||||
<input type="hidden" id="FolderName" name="FolderName" value="<%: Model.FolderName %>" />
|
||||
<input type="hidden" id="MediaPath" name="MediaPath" value="<%: Model.MediaPath %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Upload") %>" />
|
||||
|
@@ -17,7 +17,7 @@
|
||||
<fieldset>
|
||||
<label for="Name"><%=_Encoded("Folder Name") %></label>
|
||||
<input id="Name" class="textMedium" name="Name" type="text" />
|
||||
<input type="hidden" id="MediaPath" name="MediaPath" value="<%=Html.Encode(Model.MediaPath) %>" />
|
||||
<input type="hidden" id="MediaPath" name="MediaPath" value="<%: Model.MediaPath %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" value="<%=_Encoded("Save") %>" />
|
||||
|
@@ -70,7 +70,7 @@
|
||||
</td>
|
||||
<td><%=_Encoded("Orchard User")%></td>
|
||||
<td><%=mediaFile.LastUpdated %></td>
|
||||
<td><%=Html.Encode(mediaFile.Type) %></td>
|
||||
<td><%: mediaFile.Type %></td>
|
||||
<td><%=mediaFile.Size %></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
@@ -79,7 +79,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.Folder.{0}", mediaFolder.Name) %>"/>
|
||||
<input type="hidden" value="<%=Html.Encode(mediaFolder.MediaPath) %>" name="<%=Html.Encode(mediaFolder.Name) %>" />
|
||||
<input type="hidden" value="<%: mediaFolder.MediaPath %>" name="<%: mediaFolder.Name %>" />
|
||||
</td>
|
||||
<td>
|
||||
<img src="<%=ResolveUrl("~/Modules/Orchard.Media/Content/Admin/images/folder.gif")%>" height="16" width="16" class="mediaTypeIcon" alt="<%=_Encoded("Folder") %>" />
|
||||
|
@@ -18,7 +18,7 @@
|
||||
<%= Html.ValidationSummary() %>
|
||||
<div class="primary">
|
||||
<div>
|
||||
<img src="<%=Model.PublicUrl%>" class="previewImage" alt="<%=Html.Encode(Model.Caption) %>" />
|
||||
<img src="<%=Model.PublicUrl%>" class="previewImage" alt="<%: Model.Caption %>" />
|
||||
</div>
|
||||
<fieldset>
|
||||
<%-- todo: make these real (including markup) --%>
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
<div>
|
||||
<label for="Name"><%=_Encoded("Name")%></label>
|
||||
<input id="Name" name="Name" type="hidden" value="<%=Html.Encode(Model.Name) %>"/>
|
||||
<input id="NewName" class="textMedium" name="NewName" type="text" value="<%=Html.Encode(Model.Name) %>"/>
|
||||
<input id="Name" name="Name" type="hidden" value="<%: Model.Name %>"/>
|
||||
<input id="NewName" class="textMedium" name="NewName" type="text" value="<%: Model.Name %>"/>
|
||||
</div>
|
||||
<div>
|
||||
<label for="Caption"><%=_Encoded("Caption")%></label>
|
||||
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
<%--<div class="secondary" style="border:1px solid #ff0000;">
|
||||
<h2><%=_Encoded("Preview")%></h2>
|
||||
<div><img src="<%=ResolveUrl("~/Media/" + Html.Encode(Model.RelativePath + "/" + Model.Name))%>" class="previewImage" alt="<%=Html.Encode(Model.Caption) %>" /></div>
|
||||
<div><img src="<%=ResolveUrl("~/Media/" + Html.Encode(Model.RelativePath + "/" + Model.Name))%>" class="previewImage" alt="<%: Model.Caption %>" /></div>
|
||||
<ul>
|
||||
<%-- todo: make these real (including markup)
|
||||
<li><label><%=T("Dimensions: <span>500 x 375 pixels</span>")%></label></li>
|
||||
|
@@ -17,8 +17,8 @@
|
||||
<%=Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="Name"><%=_Encoded("Folder Name:") %></label>
|
||||
<input id="MediaPath" name="MediaPath" type="hidden" value="<%=Html.Encode(Model.MediaPath) %>" />
|
||||
<input id="Name" class="textMedium" name="Name" type="text" value="<%=Html.Encode(Model.Name) %>" />
|
||||
<input id="MediaPath" name="MediaPath" type="hidden" value="<%: Model.MediaPath %>" />
|
||||
<input id="Name" class="textMedium" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input type="submit" class="button primaryAction" name="submit.Save" value="<%=_Encoded("Save") %>" />
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.MetaData</RootNamespace>
|
||||
<AssemblyName>Orchard.MetaData</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -60,7 +60,7 @@ using (Html.BeginFormAntiForgeryPost(Url.Action("Save",new {id=Model.SelectedCon
|
||||
<input name="<%="part_" + item.Name%>" type="checkbox" /><%}%>
|
||||
</td>
|
||||
<td class="ContentTypePartListRowItem">
|
||||
<%= Html.Encode(item.Name)%>
|
||||
<%: item.Name %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Modules</RootNamespace>
|
||||
<AssemblyName>Orchard.Modules</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
//temporarily "disable" actions on core features
|
||||
var showActions = categoryName.ToString() != "Core"; %>
|
||||
<li class="<%=categoryClassName %>">
|
||||
<h2><%=Html.Encode(categoryName) %></h2>
|
||||
<h2><%: categoryName %></h2>
|
||||
<ul><%
|
||||
var features = featureGroup.OrderBy(f => f.Descriptor.Name);
|
||||
foreach (var feature in features) {
|
||||
|
@@ -3,21 +3,21 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Modules.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Installed Modules").ToString()) %></h1>
|
||||
<div class="manage"><%=Html.ActionLink(T("Install a module").ToString(), "Add", null, new { @class = "button primaryAction" })%></div>
|
||||
<div class="manage"><%: Html.ActionLink(T("Install a module"), "Add", null, new { @class = "button primaryAction" })%></div>
|
||||
<% if (Model.Modules.Count() > 0) { %>
|
||||
<ul class="contentItems"><%
|
||||
foreach (var module in Model.Modules.OrderBy(m => m.DisplayName)) { %>
|
||||
<li>
|
||||
<div class="summary">
|
||||
<div class="properties">
|
||||
<h2><%:module.DisplayName %><span> - <%=T("Version: {0}", !string.IsNullOrEmpty(module.Version) ? Html.Encode(module.Version) : T("1.0")) %></span></h2><%
|
||||
<h2><%: module.DisplayName %><span> - <%: T("Version: {0}", !string.IsNullOrEmpty(module.Version) ? module.Version : T("1.0").ToString()) %></span></h2><%
|
||||
if (!string.IsNullOrEmpty(module.Description)) { %>
|
||||
<p><%:module.Description %></p><%
|
||||
<p><%: module.Description %></p><%
|
||||
} %>
|
||||
<ul class="pageStatus" style="color:#666; margin:.6em 0 0 0;">
|
||||
<li><%=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))) )).OrderBy(s => s).ToArray())) %></li>
|
||||
<li> | <%=T("Author: {0}", !string.IsNullOrEmpty(module.Author) ? Html.Encode(module.Author) : (new []{"Bradley", "Bertrand", "Renaud", "Suha", "Sebastien", "Jon", "Nathan", "Erik"})[(module.DisplayName.Length + (new Random()).Next()) % 7]) %></li><%-- very efficient, I know --%>
|
||||
<li> | <%=T("Website: {0}", !string.IsNullOrEmpty(module.HomePage) ? Html.Encode(module.HomePage) : T("<a href=\"http://orchardproject.net\">http://orchardproject.net</a>"))%></li>
|
||||
<li> | <%: 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]) %></li><%-- very efficient, I know --%>
|
||||
<li> | <%: T("Website: {0}", !string.IsNullOrEmpty(module.HomePage) ? module.HomePage : T("<a href=\"http://orchardproject.net\">http://orchardproject.net</a>").ToString())%></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.MultiTenancy</RootNamespace>
|
||||
<AssemblyName>Orchard.MultiTenancy</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<%=Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<div>
|
||||
<h2><%=Html.Encode(Model.Name) %></h2>
|
||||
<h2><%: Model.Name %></h2>
|
||||
</div>
|
||||
<div>
|
||||
<label for="RequestUrlHost"><%=_Encoded("Host") %></label>
|
||||
|
@@ -9,7 +9,7 @@
|
||||
<li class="tenant <%=tenant.State.CurrentState %>">
|
||||
<div class="summary">
|
||||
<div class="properties">
|
||||
<h3><span class="tenantName"><%=Html.Encode(tenant.Name) %></span><%
|
||||
<h3><span class="tenantName"><%: tenant.Name %></span><%
|
||||
if (!string.IsNullOrEmpty(tenant.RequestUrlHost)) {
|
||||
%><span class="tenantHost"> - <%=Html.Link(Url.Tenant(tenant), Url.Tenant(tenant))%></span><%
|
||||
} %></h3>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Pages</RootNamespace>
|
||||
<AssemblyName>Orchard.Pages</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||
<%@ Import Namespace="Orchard.Core.Common.Models"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h3><a href="<%=Url.Action(T("Item").ToString(), "Page", new { area = "Orchard.Pages", slug = Model.Item.Slug }) %>"><%=Html.Encode(Model.Item.Title) %></a></h3>
|
||||
<h3><a href="<%=Url.Action(T("Item").ToString(), "Page", new { area = "Orchard.Pages", slug = Model.Item.Slug }) %>"><%: Model.Item.Title %></a></h3>
|
||||
<div class="content">
|
||||
<% Html.Zone("primary", ":manage :metadata"); %>
|
||||
</div>
|
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Pages.Models.Page>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<div class="metadata">
|
||||
<div class="posted"><%=_Encoded("Published by {0}", Model.Creator != null ? Model.Creator.UserName : T("nobody(?)"))%></div>
|
||||
<div class="posted"><%: T("Published by {0}", Model.Creator != null ? Model.Creator.UserName : T("nobody(?)").ToString())%></div>
|
||||
</div>
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Roles</RootNamespace>
|
||||
<AssemblyName>Orchard.Roles</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Information") %></legend>
|
||||
<label for="pageTitle"><%=_Encoded("Role Name:") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%=Html.Encode(Model.Name) %>" />
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Permissions") %></legend>
|
||||
@@ -26,7 +26,7 @@
|
||||
</thead>
|
||||
<% foreach (var permission in Model.ModulePermissions[moduleName]) { %>
|
||||
<tr>
|
||||
<td><%=Html.Encode(permission.Description) %></td>
|
||||
<td><%: permission.Description %></td>
|
||||
<td style="width:60px;/* todo: (heskew) make not inline :( */"><input type="checkbox" value="true" name="<%=_Encoded("Checkbox.{0}", permission.Name) %>"/></td>
|
||||
</tr>
|
||||
<% } %>
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<fieldset>
|
||||
<legend><%=_Encoded("Information") %></legend>
|
||||
<label for="pageTitle"><%=_Encoded("Role Name:") %></label>
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%=Html.Encode(Model.Name) %>" />
|
||||
<input id="Name" class="text" name="Name" type="text" value="<%: Model.Name %>" />
|
||||
<input type="hidden" value="<%=Model.Id %>" name="Id" />
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
@@ -28,7 +28,7 @@
|
||||
</thead>
|
||||
<% foreach (var permission in Model.ModulePermissions[moduleName]) { %>
|
||||
<tr>
|
||||
<td><%=Html.Encode(permission.Description) %></td>
|
||||
<td><%: permission.Description %></td>
|
||||
<td style="width:60px;/* todo: (heskew) make not inline :(">
|
||||
<% if (Model.CurrentPermissions.Contains(permission.Name)) { %>
|
||||
<input type="checkbox" value="true" name="<%=_Encoded("Checkbox.{0}", permission.Name) %>" checked="checked"/>
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<%foreach (var row in Model.Rows) { %>
|
||||
<tr>
|
||||
<td><input type="checkbox" value="true" name="<%="Checkbox." + row.Id %>"/></td>
|
||||
<td><%=Html.Encode(row.Name) %></td>
|
||||
<td><%: row.Name %></td>
|
||||
<td><%=Html.ActionLink(T("Edit").ToString(), "Edit", new { row.Id })%></td>
|
||||
</tr>
|
||||
<%}%>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<%=Html.Hidden("Roles[" + index + "].Name", entry.Name)%>
|
||||
<div>
|
||||
<%=Html.CheckBox("Roles[" + index + "].Granted", entry.Granted)%>
|
||||
<label class="forcheckbox" for="<%="Roles[" + index + "]_Granted"%>"><%=Html.Encode(entry.Name) %></label>
|
||||
<label class="forcheckbox" for="<%="Roles[" + index + "]_Granted"%>"><%: entry.Name %></label>
|
||||
</div>
|
||||
<%++index;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Sandbox</RootNamespace>
|
||||
<AssemblyName>Orchard.Sandbox</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Setup</RootNamespace>
|
||||
<AssemblyName>Orchard.Setup</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Tags</RootNamespace>
|
||||
<AssemblyName>Orchard.Tags</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<%=Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<label for="TagName"><%=_Encoded("Name:")%></label>
|
||||
<input id="TagName" class="text" name="TagName" type="text" value="<%=Html.Encode(Model.TagName) %>" />
|
||||
<input id="TagName" class="text" name="TagName" type="text" value="<%: Model.TagName %>" />
|
||||
<input type="submit" class="button" value="<%=_Encoded("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -6,7 +6,7 @@
|
||||
<fieldset>
|
||||
<label for="Name"><%=_Encoded("Name:") %></label>
|
||||
<input id="Id" name="Id" type="hidden" value="<%=Model.Id %>" />
|
||||
<input id="TagName" class="text" name="TagName" type="text" value="<%=Html.Encode(Model.TagName) %>" />
|
||||
<input id="TagName" class="text" name="TagName" type="text" value="<%: Model.TagName %>" />
|
||||
<input type="submit" class="button" value="<%=_Encoded("Save") %>" />
|
||||
</fieldset>
|
||||
<% } %>
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Themes</RootNamespace>
|
||||
<AssemblyName>Orchard.Themes</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -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>
|
||||
<% } %>
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Users</RootNamespace>
|
||||
<AssemblyName>Orchard.Users</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -22,10 +22,10 @@
|
||||
{ %>
|
||||
<tr>
|
||||
<td>
|
||||
<%=Html.Encode(row.User.UserName)%>
|
||||
<%: row.User.UserName %>
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.Encode(row.User.Email)%>
|
||||
<%: row.User.Email %>
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.ActionLink(T("Edit").ToString(), "Edit", new { row.User.Id })%> |
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>TinyMce</RootNamespace>
|
||||
<AssemblyName>TinyMce</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<RootNamespace>Orchard.Web</RootNamespace>
|
||||
<AssemblyName>Orchard.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<MvcBuildViews>true</MvcBuildViews>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
|
@@ -5,4 +5,4 @@
|
||||
|
||||
<h3><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h3>
|
||||
<div class="blog meta"><a href="<%=Url.Blog(Model.Item.Slug) %>"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%></a></div>
|
||||
<div class="blogdescription"><p><%=Html.Encode(Model.Item.Description) %></p></div>
|
||||
<div class="blogdescription"><p><%: Model.Item.Description %></p></div>
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<%--Top Navigation and branding--%>
|
||||
<div id="headercontainer">
|
||||
<div id="header">
|
||||
<h1><%=Html.Encode(Html.SiteName()) %></h1>
|
||||
<h1><%: Html.SiteName() %></h1>
|
||||
<div class="menucontainer">
|
||||
<% Html.Include("menu"); %>
|
||||
</div>
|
||||
|
@@ -5,4 +5,4 @@
|
||||
|
||||
<h3><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h3>
|
||||
<div class="blog meta"><a href="<%=Url.Blog(Model.Item.Slug) %>"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%></a></div>
|
||||
<div class="blogdescription"><p><%=Html.Encode(Model.Item.Description) %></p></div>
|
||||
<div class="blogdescription"><p><%: Model.Item.Description %></p></div>
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<%--Top Navigation and branding--%>
|
||||
<div id="headercontainer">
|
||||
<div id="header">
|
||||
<h1><%=Html.Encode(Html.SiteName()) %></h1>
|
||||
<h1><%: Html.SiteName() %></h1>
|
||||
<div class="menucontainer">
|
||||
<% Html.Include("menu"); %>
|
||||
</div>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
|
||||
<div class="footer group">
|
||||
<ul class="group">
|
||||
<li>©2010 <%= Html.Encode(Html.SiteName()) %>. All rights reserved.</li>
|
||||
<li>©2010 <%: Html.SiteName() %>. All rights reserved.</li>
|
||||
<li><a href="http://www.orchardproject.net" title="Orchard Project">Powered by Orchard</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
<div class="header">
|
||||
<div class="brand group">
|
||||
<div class="title"><%=Html.Encode(Html.SiteName()) %></div>
|
||||
<div class="title"><%: Html.SiteName() %></div>
|
||||
<% Html.Include("User"); %>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -5,7 +5,7 @@ foreach (var comment in Model) { %>
|
||||
<li>
|
||||
|
||||
<div class="comment">
|
||||
<p><%=Html.Encode(comment.Record.CommentText) %></p>
|
||||
<p><%: comment.Record.CommentText %></p>
|
||||
</div>
|
||||
|
||||
<div class="commentauthor">
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<ul class="admin group">
|
||||
<% if (Request.IsAuthenticated)
|
||||
{ %>
|
||||
<li><%=_Encoded("Welcome")%> <%=Html.Encode(Page.User.Identity.Name) %></li>
|
||||
<li><%=_Encoded("Welcome")%> <%: Page.User.Identity.Name %></li>
|
||||
<li><%=Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users" })%></li>
|
||||
<li><%= Html.ActionLink("Admin", "Index", new {Area = "Dashboard", Controller = "Admin"})%></li>
|
||||
<% }
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<div id="footer-content">
|
||||
<div id="footernav">
|
||||
<div>
|
||||
©2010 <%= Html.Encode(Html.SiteName()) %>. All rights reserved.</div>
|
||||
©2010 <%: Html.SiteName() %>. All rights reserved.</div>
|
||||
</div>
|
||||
<div id="disclaimer">
|
||||
*This is perfect for disclaimer content. You can use this content to let people know something important. A good example is if you’re FDIC insured, or the organizations you are part of. Use this space wisely. It shows up on every page. You can even put some legal terms in there.
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<div id="nav">
|
||||
<div class="brand group">
|
||||
<div class="title">
|
||||
<%=Html.Encode(Html.SiteName()) %></div>
|
||||
<%: Html.SiteName() %></div>
|
||||
</div>
|
||||
<% Html.Zone("menu"); %>
|
||||
</div>
|
||||
|
@@ -19,7 +19,7 @@
|
||||
<div id="nav">
|
||||
<div class="brand group">
|
||||
<div class="title">
|
||||
<%=Html.Encode(Html.SiteName()) %></div>
|
||||
<%: Html.SiteName() %></div>
|
||||
</div>
|
||||
<% Html.Zone("menu"); %>
|
||||
</div>
|
||||
|
@@ -5,7 +5,7 @@ foreach (var comment in Model) { %>
|
||||
<li>
|
||||
|
||||
<div class="comment">
|
||||
<p><%=Html.Encode(comment.Record.CommentText) %></p>
|
||||
<p><%: comment.Record.CommentText %></p>
|
||||
</div>
|
||||
|
||||
<div class="commentauthor">
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<ul class="admin group">
|
||||
<% if (Request.IsAuthenticated)
|
||||
{ %>
|
||||
<li><%=_Encoded("Welcome")%> <%=Html.Encode(Page.User.Identity.Name) %></li>
|
||||
<li><%=_Encoded("Welcome")%> <%: Page.User.Identity.Name %></li>
|
||||
<li><%=Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users" })%></li>
|
||||
<li><%= Html.ActionLink("Admin", "Index", new {Area = "Dashboard", Controller = "Admin"})%></li>
|
||||
<% }
|
||||
|
@@ -4,4 +4,4 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||
<h3><%=Html.Link(Html.Encode(Model.Item.Name), Url.Blog(Model.Item.Slug)) %></h3>
|
||||
<div class="blog meta"><a href="<%=Url.Blog(Model.Item.Slug) %>"><%=_Encoded("{0} post{1}", Model.Item.PostCount, Model.Item.PostCount == 1 ? "" : "s")%></a></div>
|
||||
<div class="blogdescription"><p><%=Html.Encode(Model.Item.Description) %></p></div>
|
||||
<div class="blogdescription"><p><%: Model.Item.Description %></p></div>
|
||||
|
@@ -24,7 +24,7 @@ return false;
|
||||
<div id="hd" role="banner">
|
||||
<div class="yui-g" id="branding">
|
||||
<div class="yui-u first">
|
||||
<h1><a href="/" title="Go to Home"><%=Html.Encode(Html.SiteName()) %></a></h1>
|
||||
<h1><a href="/" title="Go to Home"><%: Html.SiteName() %></a></h1>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<div id="logIn">
|
||||
|
@@ -22,7 +22,7 @@ return false;
|
||||
<div id="hd" role="banner">
|
||||
<div class="yui-g" id="branding">
|
||||
<div class="yui-u first">
|
||||
<h1><a href="/" title="Go to Home"><%=Html.Encode(Html.SiteName()) %></a></h1>
|
||||
<h1><a href="/" title="Go to Home"><%: Html.SiteName() %></a></h1>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<div id="logIn">
|
||||
|
@@ -5,7 +5,7 @@ foreach (var comment in Model) { %>
|
||||
<li>
|
||||
|
||||
<div class="comment">
|
||||
<p><%=Html.Encode(comment.Record.CommentText) %></p>
|
||||
<p><%: comment.Record.CommentText %></p>
|
||||
</div>
|
||||
|
||||
<div class="commentauthor">
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<% if (Model.CurrentUser != null) {
|
||||
%><div id="login"><%=_Encoded("User:")%> <%=Html.Encode(Model.CurrentUser.UserName)%> | <%=Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account" }) %></div><%
|
||||
%><div id="login"><%=_Encoded("User:")%> <%: Model.CurrentUser.UserName %> | <%=Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account" }) %></div><%
|
||||
} %>
|
Reference in New Issue
Block a user