mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fix for #17184 - The name "View" does not exist. Modified the two references to View.ContentItems to ViewData.
--HG-- branch : 1.x
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
}
|
}
|
||||||
<h2>@T("Content items tagged with {0}", Model.TagName)</h2>
|
<h2>@T("Content items tagged with {0}", Model.TagName)</h2>
|
||||||
@if (View.ContentItems == null) {
|
@if (ViewData["ContentItems"] == null) {
|
||||||
<p>@T("There is nothing tagged with {0}", Model.TagName)</p>
|
<p>@T("There is nothing tagged with {0}", Model.TagName)</p>
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -31,7 +31,7 @@ else {
|
|||||||
<th scope="co2">@T("Name")</th>
|
<th scope="co2">@T("Name")</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@foreach (IContent content in View.ContentItems) {
|
@foreach (IContent content in (IEnumerable<IContent>)ViewData["ContentItems"]) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>@content.ContentItem.ContentType.CamelFriendly()</td>
|
<td>@content.ContentItem.ContentType.CamelFriendly()</td>
|
||||||
<td>@Html.ItemEditLink(content.ContentItem)</td>
|
<td>@Html.ItemEditLink(content.ContentItem)</td>
|
||||||
|
Reference in New Issue
Block a user