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:
Kevin LaBranche
2011-01-07 15:23:08 -07:00
parent f07174c811
commit 7089bef869

View File

@@ -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>