--HG--
branch : 1.x
This commit is contained in:
Suha Can
2011-01-10 10:43:28 -08:00

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>