mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +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.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") %>" />
|
||||
|
||||
Reference in New Issue
Block a user